2041
TI Z80 / Re: Robo-Gun: My first big axe game
« on: November 15, 2011, 07:01:33 pm »
Halp! It skips level to in my level menu. The first 3 args are the requirements to pass the level.
The only thing different about the level 2 is that it requires a certain amount of money instead of enemy kills
The only thing different about the level 2 is that it requires a certain amount of money instead of enemy kills
Code: [Select]
.A is for level
If A=1
.The first argument is the money requirement
GAME(0,6,0,4,3,1
ElseIf A=2
GAME(300,0,0,4,3,1
ElseIf A=3
(goes on with different args 'till A=8)
End
.Lotsa stuff
Lbl GAME
.Lotsa stuff
For(P,0,r5)
.Lotsa stuff
If (r2<J) and (r1<G) and (r3<L)
.G is the amount of money the user has
A++
G-r1->G
1->N
.Level up and return
Return
End
DispGraph
End