Log In  


Cart #spaceship_x_meteore_v0_1-0 | 2025-04-14 | Code ▽ | Embed ▽ | No License
2


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.

2


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 ;)


Thanks! I didn’t notice that.



[Please log in to post a comment]