I would like the player after he/her makes it to the end of the map to go to the next level.
Here is an example of a code that I would like you to change so the player will close and open another level... blah = unimportant coding and whatever is inside * and * is the code I want you to edit
a = 0
while a == 0:
if player crashes into wall:
a = 1
while a == 1:
*make new box*
1 Year Ago
Related Article:Pygame input to screen
is a Python discussion thread by ehud07 that has 1 reply, was last updated 1 year ago and has been tagged with the keywords: inputs, keyboard, pygame.
Looks like you you are having unterminating while if you do not change the value of a in other loops. For me the a variable looks without purpose, why not just break out of while, no need for sentinel variable, it only confuses the issue.