comparison pytouhou/game/player.pyx @ 614:2cf518129725

Delay power assignment to players until the game is started.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 28 Mar 2015 21:02:05 +0100
parents 3c2f96f1d715
children a6af3ff86612
comparison
equal deleted inserted replaced
613:560b45a7d014 614:2cf518129725
22 from pytouhou.game.laser cimport PlayerLaser 22 from pytouhou.game.laser cimport PlayerLaser
23 from pytouhou.game import GameOver 23 from pytouhou.game import GameOver
24 24
25 25
26 cdef class Player(Element): 26 cdef class Player(Element):
27 def __init__(self, long number, anm, long character=0, long power=0, 27 def __init__(self, long number, anm, long character=0, long continues=0,
28 long continues=0, long lives=2, long bombs=3, long score=0): 28 long power=0, long lives=2, long bombs=3, long score=0):
29 Element.__init__(self, (192, 384)) 29 Element.__init__(self, (192, 384))
30 30
31 self.number = number 31 self.number = number
32 self.character = character # ReimuA/ReimuB/MarisaA/MarisaB/... 32 self.character = character # ReimuA/ReimuB/MarisaA/MarisaB/...
33 33