What is the scope of this code? That is, is it in a function? Script only? Also,where is game declared because if it is initialized as false then it will skip the first while loop.
You are also only rendering in the first loop whenever the user presses enter as seen below:
[source lang="python"] for event in pygame.event.get(): #the pplrty determiner if event.type == pygame.KEYDOWN: if event.key == pygame.K_RETURN: year += 1 # Drawing/Reaction code here... pygame.display.update()[/source]
Is this intended?
Does it catch any of the inputs? That is, have you tried this:
[source lang="python"]for event in pygame.event.get(): #the pplrty determiner if event.type == pygame.KEYDOWN: if event.key == pygame.K_RETURN: print "RETURN Key Hit."[/source]
The entire source code is too big to put on here but game is initialized in a while loop before it that controls the starting screen of the game. And yes that is intentional because otherwise certain things are not drawn to the screen correctly.
And yes it does catch input, i had it print "x" earlier everytime the user hit enter and it printed everytime.