Hello! I've been having some trouble getting the exit code to work in a small demo game I've been working on. Can anyone give me tips on how to resolve this? I've tried many different ways, but I admit I'm still a beginner, so maybe someone else knows more about this :)
Code:
Thanks!
Code:
.SHOOTER A first game to practice Axe coding.
DiagnosticOff
44->B
28->C
0->A->P->T
rand^95->D
rand^63->E
ClrHome
Disp "SHOOTER "
Disp "PRESS ENTER"
Repeat K=9
getKey->K
End
.Game Loop code
.Sprites
[007C9292EE92927C]->Pic1
[003844BAAABA4438]->Pic2
[0000000000000000]->Pic3
[00245A85854A2418]->Pic4
.Game
Pt-On(B,C,Pic1)
sub(GM)
.Loss screen and return to TI-OS
ClrHome
Disp "YOU SHOT TARGETS"
Pause 2500
ClrHome
Disp "SHOOTER BY OLIENS "
DiagnosticOn
Return
.Game subroutine
Lbl GM
Repeat A=3
Pt-Off(D,E,Pic2)
If T=(200-(P*10))
0->T
Pt-Off(D,E,Pic3)
rand^90->D
rand^52+8->E
A+1->A
Pt-Off(D,E,Pic2)
End
getKey->K
If getKey(0)
Pt-Off(B,C,Pic3)
B+(K=3*3)-(K=2*3)->B
C+(K=1*3)-(K=4*3)->C
Pt-Off(B,C,Pic1)
End
For(O,0,2-A)
Pt-Off(O*8,55,Pic4)
End
If A>0
Pt-Off(16,55,Pic3)
End
If A>1
Pt-Off(8,55,Pic3)
End
Text(25,58,P>Dec)
Text(50,58,A>Dec)
Text(55,58,T>Dec)
T+1->T
DispGraph
End
ReturnThanks!