This is my first game! It took me a weekend and lots of bug fixes. Try to post some records or report bugs on the coments!
Patch 0.1: Thanks 851513 for noticing an error on my game. Now you cannot "restart" the game in the middle of it.



so i found an error in the _update()
function in
if game == 0 or 2 then if btn(5) then t = 0 ym = 8 xm1 = rnd(119) game = 1 end end |
the condition game == 0 or 2
will always be true
this is because youre checking for if game
variable is 0
or youre checking if 2
is not false
or nil
(which is always true)
to fix this you could do game == 0 or game == 2
or in this case since game
can only be 0
1
or 2
you could do game ~= 1
(game
isnt 1
)
other than that not bad ;)
[Please log in to post a comment]