comparison pytouhou/game/player.pyx @ 457:4ccc47828002

Display the name of a spellcard and the face of its invoker.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 10 Aug 2013 13:36:42 +0200
parents 78e1c3864e73
children 5f5955635d2c
comparison
equal deleted inserted replaced
456:cae1ae9de430 457:4ccc47828002
228 self.fire_time = 30 228 self.fire_time = 30
229 if self.fire_time > 0: 229 if self.fire_time > 0:
230 self.fire() 230 self.fire()
231 self.fire_time -= 1 231 self.fire_time -= 1
232 232
233 if keystate & 2 and self.bomb_time == 0:
234 self._game.set_player_bomb()
235 self.bomb_time = 240
236 if self.bomb_time > 0:
237 self.bomb_time -= 1
238 if self.bomb_time == 0:
239 self._game.unset_player_bomb()
240
233 if self.death_time: 241 if self.death_time:
234 time = self._game.frame - self.death_time 242 time = self._game.frame - self.death_time
235 if time == 6: # too late, you are dead :( 243 if time == 6: # too late, you are dead :(
236 self.state.touchable = False 244 self.state.touchable = False
237 if self.state.power > 16: 245 if self.state.power > 16: