comparison pytouhou/game/enemy.py @ 300:da53bc29b94a

Add the game interface.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 10 Mar 2012 17:47:03 +0100
parents 94c636f8f863
children f3099ebf4f61
comparison
equal deleted inserted replaced
299:e04e402e6380 300:da53bc29b94a
317 damages += 10 317 damages += 10
318 player.collide() 318 player.collide()
319 319
320 # Adjust damages 320 # Adjust damages
321 damages = min(70, damages) 321 damages = min(70, damages)
322 score = (damages // 5) * 10 #TODO: give to which player? 322 score = (damages // 5) * 10
323 self._game.players[0].state.score += score #TODO: better distribution amongst the players.
323 324
324 if self._game.spellcard: 325 if self._game.spellcard:
325 #TODO: there is a division by 3, somewhere... where is it? 326 #TODO: there is a division by 3, somewhere... where is it?
326 if damages <= 7: 327 if damages <= 7:
327 damages = 1 if damages else 0 328 damages = 1 if damages else 0