comparison pytouhou/game/player.pyx @ 509:292fea5c584e

Some more type optimisations.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 25 Nov 2013 19:12:56 +0100
parents 3d3285918ba1
children db28538cd399
comparison
equal deleted inserted replaced
508:1bc014f9d572 509:292fea5c584e
27 27
28 28
29 cdef class Player(Element): 29 cdef class Player(Element):
30 def __init__(self, long number, anm, long character=0, long power=0, 30 def __init__(self, long number, anm, long character=0, long power=0,
31 long continues=0, long lives=2, long bombs=3, long score=0): 31 long continues=0, long lives=2, long bombs=3, long score=0):
32 Element.__init__(self) 32 Element.__init__(self, (192, 384))
33 33
34 self.number = number 34 self.number = number
35 self.character = character # ReimuA/ReimuB/MarisaA/MarisaB/... 35 self.character = character # ReimuA/ReimuB/MarisaA/MarisaB/...
36 36
37 self.score = score 37 self.score = score
45 self.miss = 0 45 self.miss = 0
46 self.bombs_used = 0 46 self.bombs_used = 0
47 47
48 self.graze = 0 48 self.graze = 0
49 self.points = 0 49 self.points = 0
50
51 self.x = 192.0
52 self.y = 384.0
53 50
54 self.invulnerable_time = 240 51 self.invulnerable_time = 240
55 self.touchable = True 52 self.touchable = True
56 self.focused = False 53 self.focused = False
57 54