comparison pytouhou/game/player.py @ 328:56523a16db1d

Fix some replay synchronization issues and update the TODO.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 21 Jun 2012 19:59:41 +0200
parents f3099ebf4f61
children 1b4f04b08729
comparison
equal deleted inserted replaced
327:13201d90bb22 328:56523a16db1d
190 190
191 if self.state.invulnerable_time > 0: 191 if self.state.invulnerable_time > 0:
192 self.state.invulnerable_time -= 1 192 self.state.invulnerable_time -= 1
193 193
194 m = self.state.invulnerable_time % 8 194 m = self.state.invulnerable_time % 8
195 if m == 0: 195 if m == 7 or self.state.invulnerable_time == 0:
196 self.sprite.color = (255, 255, 255) 196 self.sprite.color = (255, 255, 255)
197 self.sprite.changed = True 197 self.sprite.changed = True
198 elif m == 2: 198 elif m == 1:
199 self.sprite.color = (64, 64, 64) 199 self.sprite.color = (64, 64, 64)
200 self.sprite.changed = True 200 self.sprite.changed = True
201 201
202 if keystate & 1 and self.fire_time == 0: 202 if keystate & 1 and self.fire_time == 0:
203 self.fire_time = 30 203 self.fire_time = 30