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
Post a Comment