comparison pytouhou/game/bullet.pyx @ 472:8038f1957b71

Type bullettype, itemtype and lasertype a bit.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 16 Sep 2013 18:42:04 +0200
parents feecdb4a8928
children 887de1309491
comparison
equal deleted inserted replaced
471:06f0eeb519bb 472:8038f1957b71
17 from pytouhou.vm.anmrunner import ANMRunner 17 from pytouhou.vm.anmrunner import ANMRunner
18 from pytouhou.game.sprite cimport Sprite 18 from pytouhou.game.sprite cimport Sprite
19 19
20 20
21 cdef class Bullet(Element): 21 cdef class Bullet(Element):
22 def __init__(self, pos, bullet_type, unsigned long sprite_idx_offset, 22 def __init__(self, pos, BulletType bullet_type, unsigned long sprite_idx_offset,
23 double angle, double speed, attributes, unsigned long flags, target, Game game, 23 double angle, double speed, attributes, unsigned long flags, target, Game game,
24 bint player_bullet=False, unsigned long damage=0, tuple hitbox=None): 24 bint player_bullet=False, unsigned long damage=0, tuple hitbox=None):
25 cdef double launch_mult 25 cdef double launch_mult
26 26
27 Element.__init__(self, pos) 27 Element.__init__(self, pos)