TempleOSCDV4.11.ISO
This commit is contained in:
1 parent
9206246147
commit
93ca216483
662 files changed
+6431
-7369
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
@@ -1,4 +1,4 @@
|
||||
//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CPP"$.
|
||||
//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.HC"$.
|
||||
|
||||
RegSetDftEntry("TempleOS/CastleFrankenstein","F64 best_score=9999;\n");
|
||||
RegExeBranch("TempleOS/CastleFrankenstein");
|
||||
@@ -3,7 +3,7 @@ Char graphics are how games on the C64 were made. You don't need to do it
|
||||
this way, unless for fun. You can just make device context bigger than
|
||||
the screen and scroll around.
|
||||
|
||||
See $LK,"::/Demo/Games/RawHide.CPP"$ or $LK,"::/Demo/Games/BigGuns.CPP"$.
|
||||
See $LK,"::/Demo/Games/RawHide.HC"$ or $LK,"::/Demo/Games/BigGuns.HC"$.
|
||||
|
||||
The nice thing about character graphics are the animations.
|
||||
*/
|
||||
@@ -31,7 +31,7 @@ U0 DrawIt(CTask *task,CDC *)
|
||||
for (j=0;j<task->win_width;j++)
|
||||
//By the time you clip to window and handle Fs->scroll_x,Fs->scroll_y,
|
||||
//it is too much trouble to do raw access to gr.text_base like we do
|
||||
//in $LK,"::/Demo/Games/Maze.CPP"$.
|
||||
//in $LK,"::/Demo/Games/Maze.HC"$.
|
||||
TextChar(task,FALSE,j,i,*ptr++);
|
||||
}
|
||||
}
|
||||
File renamed without changes.
Binary file not shown.
@@ -3,7 +3,7 @@
|
||||
//gives a name to it. Strings like
|
||||
//this are known as Define entries.
|
||||
|
||||
//See $LK,"ST_RAINBOW_10",A="FF:::/Adam/Gr/GrPalette.CPP,ST_RAINBOW_10"$
|
||||
//See $LK,"ST_RAINBOW_10",A="FF:::/Adam/Gr/GrPalette.HC,ST_RAINBOW_10"$
|
||||
|
||||
U0 PrintDigit(U8 ch)
|
||||
{
|
||||
@@ -112,7 +112,7 @@ U0 DrawIt(CTask *task,CDC *dc)
|
||||
dc_t->flags|=DCF_TRANSFORMATION;
|
||||
|
||||
//You could make it much more efficient
|
||||
//if you did it like $LK,"::/Demo/Games/BigGuns.CPP"$
|
||||
//if you did it like $LK,"::/Demo/Games/BigGuns.HC"$
|
||||
//with a $LK,"CDC",A="MN:CDC"$.
|
||||
|
||||
for (y=-SCREEN_HEIGHT/2;y<SCREEN_HEIGHT/2;y++) {
|
||||
@@ -1,4 +1,4 @@
|
||||
//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CPP"$.
|
||||
//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.HC"$.
|
||||
|
||||
RegSetDftEntry("TempleOS/EagleDive","F64 best_score=9999;\n");
|
||||
RegExeBranch("TempleOS/EagleDive");
|
||||
@@ -970,10 +970,10 @@ Obj *FishFind(I64 x1,I64 y1,I64 *_dd)
|
||||
U0 AnimateTask(I64)
|
||||
{//Steadily moves the airplane fwd.
|
||||
I64 *s2w,x1,y1,z1,dx,dy,dz,dd;
|
||||
F64 t0=tS,mS,é,d;
|
||||
F64 t0=tS,ms,é,d;
|
||||
Obj *tempo;
|
||||
while (TRUE) {
|
||||
mS=1000*(tS-t0);
|
||||
ms=1000*(tS-t0);
|
||||
t0=tS;
|
||||
if (!game_tf) {
|
||||
//Screen to world coordinates
|
||||
@@ -984,9 +984,9 @@ U0 AnimateTask(I64)
|
||||
|
||||
dx=0;dy=0;dz=1<<16;
|
||||
Mat4x4MulXYZ(s2w,&dx,&dy,&dz);
|
||||
x-=speed*mS*COORDINATE_SCALE*dx/1<<16;
|
||||
y-=speed*mS*COORDINATE_SCALE*dy/1<<16;
|
||||
z-=speed*mS*COORDINATE_SCALE*dz/1<<16;
|
||||
x-=speed*ms*COORDINATE_SCALE*dx/1<<16;
|
||||
y-=speed*ms*COORDINATE_SCALE*dy/1<<16;
|
||||
z-=speed*ms*COORDINATE_SCALE*dz/1<<16;
|
||||
Free(s2w);
|
||||
x1=x/COORDINATE_SCALE; y1=y/COORDINATE_SCALE; z1=z/COORDINATE_SCALE;
|
||||
if (z1<(WATER_ELEVATION+3)*MAP_SCALE) {
|
||||
@@ -994,9 +994,9 @@ U0 AnimateTask(I64)
|
||||
z=WATER_ELEVATION*MAP_SCALE*COORDINATE_SCALE;
|
||||
if (invert_pitch) {
|
||||
if (pitch<-ã/8)
|
||||
è+=mS/1000.0*Sign(3*ã/8-è);
|
||||
è+=ms/1000.0*Sign(3*ã/8-è);
|
||||
} else if (pitch<-ã/8)
|
||||
è+=mS/1000.0*Sign(-3*ã/8-è);
|
||||
è+=ms/1000.0*Sign(-3*ã/8-è);
|
||||
WrapAngles;
|
||||
}
|
||||
speed=1.0;
|
||||
@@ -1056,13 +1056,14 @@ U0 TaskEndCB()
|
||||
}
|
||||
|
||||
U0 SongTask(I64)
|
||||
{//Song by Terry A. Davis
|
||||
{
|
||||
Fs->task_end_cb=&SndTaskEndCB;
|
||||
MusicSettingsRst;
|
||||
music.stacatto_factor=0.2;
|
||||
while (TRUE) {
|
||||
Play("3eBDEDBDEDFEEDFEED");
|
||||
Play("BDEDBDEDFEEDFEED");
|
||||
Play("3eCGFsDAe.C2sG3eGDqCDeGsGG2qG");
|
||||
Play("3eCGFsDAe.C2sG3eGDqCDeGsGG2qG");
|
||||
Play("3eGECGCAFCsCBCBe.GsG2qG3B");
|
||||
Play("eGECGCAFCsCBCBe.GsG2qG3B");
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
|
||||
//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.CPP"$.
|
||||
//Uses $LK,"fixed-point",A="FI:::/Demo/Lectures/FixedPoint.HC"$.
|
||||
|
||||
RegSetDftEntry("TempleOS/RawHide","F64 best_score=9999;\n");
|
||||
RegExeBranch("TempleOS/RawHide");
|
||||
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
@@ -1,4 +1,4 @@
|
||||
//Generate "StadiumBG.GRA.Z" from "StadiumBG.TXT.Z"
|
||||
//Generate "StadiumBG.GRA.Z" from "StadiumBG.DD.Z"
|
||||
|
||||
U0 StadiumGen()
|
||||
{
|
||||
@@ -11,7 +11,7 @@ U0 StadiumGen()
|
||||
WinMax;
|
||||
DocCursor(OFF);
|
||||
DocClear;
|
||||
Type("StadiumBG.TXT");
|
||||
Type("StadiumBG.DD");
|
||||
"$$CM,0,%d$$",TEXT_ROWS-3;
|
||||
fp_old_update=gr.fp_final_screen_update; //hide mouse cursor
|
||||
gr.fp_final_screen_update=NULL;
|
||||
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user