0 Members and 3 Guests are viewing this topic.
.RACER3D[3C7E427EFF99FF42]->PIC1"SCORE:"->STR1"GAME OVER"->STR2»SciReturn!If FullFix 5128->B40->LFor(A,0,40)rand^3-1+B->B->{L1+A}EndClrDrawFor(A,0,95)Line(A,rand^4+21,A,24)EndStorePic3->Y->R[neg]100->X0->TRepeat getKey(15).MOVEIf getKey(2)X+2->XHorizontal +Line(0,24,0,rand^4+21)StorePicEndIf getKey(3)X-2->XHorizontal -Line(95,24,95,rand^4+21)StorePicEnd.SCORE!If T+1->T^32L-1->LEndText(0,0,STR1)Text(22,0,T->DEC).SHIFTconj(L1+39,L1+40,40)[radians]If {L1}<5{L1}+5->{L1}EndIf {L1}>250{L1}-5->{L1}Endrand^3-1+Y+{L1}->{L1}DS<(R,14)rand^5-2->YEnd.DRAWIf Z=0->ZFor(A,0,39)A+24->BA/2+{[root]^2A*10*4)+L1}+X->CIf C-A->E>10000->EEndIf C+L->F>10000->FEndFor(D,E,96)+1,F,96))Pxl-On(D-1,B)EndEndPt-Change(42,55,PIC1)DispGraph.DEATHIf E>42 or (F<50)For(A,1,7)Pt-Change(42,55,PIC1)DispGraphPause 1500EndFix 4Text(32,13,STR2)Repeat getKey(0)EndClrHomeReturnEndRecallPicEnd:EndLabel QFix 4
.RACER3D[00007E4242FFFF42]->PIC1"SCORE:"->STR1"GAME OVER"->STR2"DAVID GOMES"->STR3Label 1ClrDrawClrHomeText(0,0,"RACER 3DText(0,10,"1:PLAYText(0,20,"2:ABOUTText(0,30,"3:HELPText(0,40,"4:QUITRepeat getKey->ZEndIf Z=26ClrHomeDisp "DAVIDRepeat getKeyEndGoto 1EndIf Z=18ClrHomeClrDrawRepeat getKey->ZEndGoto 1EndIf Z=35ClrHomeDisp "STOP...Repeat getKeyEndGoto 1EndIf Z=34Return!If FullFix 5128->B40->LFor(A,0,40)rand^3-3-1+B->B->{L1+A}EndFor(A,0,95)Line(A,rand^4+21,A,24)EndStorePic3->Y->R[neg]100->X0->TRepeat getKey(15).MOVEIf getKey(2)X+2->XHorizontal +Line(0,24,0,rand^4+21)StorePicEndIf getKey(3)X-2->XHorizontal -Line(95,24,95,rand^4+21)StorePicEnd.SCORE!If T+1->T^32L-1->LEndText(0,0,STR1)Text(22,0,T->DEC).SHIFTconj(L1+39,L1+40,40)[radians]If {L1}<5{L1}+5->{L1}EndIf {L1}>250{L1}-5->{L1}Endrand^3-1+Y+{L1}->{L1}DS<(R,14)rand^5-2->YEnd.DRAWIf Z=0->ZFor(A,0,39)A+24->BA/2+{[root]^2A*10*4)+L1}+X->CIf C-A->E>10000->EEndIf C+L->F>10000->FEndFor(D,E,96)+1,F,96))Pxl-On(D-1,B)EndEndPt-Change(42,55,PIC1)DispGraph.DEATHIf E>42 or (F<50)For(A,1,7)Pt-Change(42,55,PIC1)DispGraphPause 250EndFix 4ClrHomeText(0,0,STR2Text(0,20,STR1Text(0,30,T->DECText(50,55,STR3Pause 9999Pause 9999Repeat getKey(0)EndClrHomeReturnEndRecallPicEnd:EndLabel QFix 4End
I was actually considering doing something like this for my first try in Axe programming.It'll be interesting to see what you do with it.
A Title Screen was also added, working. The About and Help: Working.
Ah nice. I am curious about how it looks like.
To add:*Turning Speed (Easy)- Yeah, it shouldnt be a problem.*Different Cars (Medium Difficulty)- I dont know how Quigibo designed the collision system. Maybe anothercar sprite could crash by itself. Anyway yes, medium difficultly.*Making the user go back to the title screen when the game ends (Medium Difficulty)- Its very easy. *Adding difficulty levels (Hard)- Do you mean you remove the random street system and use particular routes instead of it?As you think, this would be hard for you.*Adding an inverted mode, where you drive the car outside the track and if you enter the track you lose (ah, this looks promising) (Expert Level)- It would be very easy, would it? Its no problem if Quigibo used a pixeltest collision,cause then you just have to use DrawInv.
.DEATHIf E>42 or (F<50)For(A,1,7)Pt-Change(42,55,PIC1)DispGraphPause 250EndFix 4ClrHomeText(0,0,STR2Text(0,20,STR1Text(0,30,T->DECText(50,55,STR3Pause 9999Pause 9999Repeat getKey(0)EndClrHomeReturnEnd
E>42 or (F<50)
:Lbl 1:ClrDraw:ClrHome:Output(0,0,"RACER 3D: REPLAY:Text(0,15,"1:PLAY:Text(0,25,"2:ABOUT:Text(0,35,"3:HELP:Text(0,45,"4:QUIT:2->S:Text(30,15,"5:TURN SPEED +:Text(30,25,"6:TURN SPEED -:Text(30,35,S:Repeat getKey->Z:End:If Z=26:ClrHome:Output(0,0,"RACER 3D: REPLAY:Text(0,15,"GAME BY::Text(0,35,"-DAVID:Text(0,45,"-QUIGIBO:Repeat getKey:End:Goto 1:End:If Z=18:ClrHome:Disp "HELP:Repeat getKey:End:Goto 1:End:If Z=35:ClrHome:Goto 2:End:Repeat getKey:End:If Z=27:S+1->S:If Z=19:S-1->S:End:Repeat getKey:End:If Z=34// GAME CODE:Lbl 2 // This is the last line of code so that the quit button in the title screen quits the program
:Text(30,35,S should be :Text(30,35,S>Dec or it will just show tons o' gibberish. What the >Dec does is displays S as a decimal, not as a string pointed to by the value of S.just in case that's giving you problems too
This is lookin' sweet! B)
Another cool thing to do would be to scale the size of the city in the background as you drive. Just add an extra layer of pixels to the top of all of the buildings when the score reaches a certain modulus.