python - Issues running a code using Pygame -


okay, wrote code develop game using pygame. aim of game : there player (mario) can move vertically. right side of window, flames appear mario has dodge. game similar dodger.py ! now, when run game, gets stuck @ "press key enter"

please !

you not doing in waitforkey() function.

if event.type == keydown:     # if key exit blah blah     else:         rungame()  

you put game in function called rungame , probabaly easiest way of doing this. remember variables local scope of that function , changes won't affect rest of program.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -