comparison pytouhou/opengl/gamerunner.py @ 151:5cf927cbd9c5

Merge GameState into Game. TODO: Merge PlayerState into Player
author Thibaut Girka <thib@sitedethib.com>
date Tue, 04 Oct 2011 23:32:02 +0200
parents 96c30ffd9b87
children 7769ce7be03c
comparison
equal deleted inserted replaced
150:4f46717390aa 151:5cf927cbd9c5
84 self.set_fullscreen(not self.fullscreen) 84 self.set_fullscreen(not self.fullscreen)
85 85
86 86
87 def update(self): 87 def update(self):
88 if self.background: 88 if self.background:
89 self.background.update(self.game.game_state.frame) 89 self.background.update(self.game.frame)
90 if self.game: 90 if self.game:
91 #TODO: allow user settings 91 #TODO: allow user settings
92 keystate = 0 92 keystate = 0
93 if self.keys[pyglet.window.key.W]: 93 if self.keys[pyglet.window.key.W]:
94 keystate |= 1 94 keystate |= 1