Page 1 of 1
problem with my game...
Posted: Tue Mar 07, 2017 10:39 am
by Bernard51
hello
I encounter a problem with my game in particular with the menu screen
https://www.dropbox.com/s/cd71hh4qlfsxa ... 7.zip?dl=0
Thank you for your help
Re: problem with my game...
Posted: Tue Mar 07, 2017 3:35 pm
by zorg
Okay, so i see two problems.
One is that the GAME OVER text is not centered correctly;
The other is that after missing the ball and getting the game over, restarting the game brings me directly to the game over screen.
Which is it?
Edit: Okay, i found a lot more issues, and i stopped after i got bored of fixing them; i uploaded the game with my modifications, in most places i put english comments (sorry, french isn't a strong suit of mine) that explain why i did what.
I also packaged it normally this time, as in, not the whole folder, but the contents; this way, renaming the .zip to a .love will also make it work.
Re: problem with my game...
Posted: Tue Mar 07, 2017 4:27 pm
by Bernard51
Thank you very very much
How to do it when all the bricks are destroyed and display a screen Well done ?
Thank you
Re: problem with my game...
Posted: Tue Mar 07, 2017 5:42 pm
by zorg
You should have a variable that has how many bricks are still present in the game, and if one brick gets removed, subtract 1 from that variable; if that reaches 0, go to the well done screen, which would be a new gamestate, like the menu, game and game over screens.
Also don't forget to reset the variable; doing something like
inside your init function would probably be enough for that.
Re: problem with my game...
Posted: Tue Mar 07, 2017 5:53 pm
by Bernard51
Thanks but it does not work with variable
Re: problem with my game...
Posted: Tue Mar 07, 2017 6:01 pm
by zorg
Re: problem with my game...
Posted: Tue Mar 07, 2017 6:58 pm
by Bernard51
Thanks you
How do my ball destroy several bricks at the same time?