Mercurial > touhou
comparison pytouhou/game/enemy.py @ 197:e1bc8c4cbb1a
Do the right action when collecting an item.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 30 Oct 2011 11:29:08 -0700 |
parents | 9f58e2a6e950 |
children | d348892ef012 |
comparison
equal
deleted
inserted
replaced
196:1e501e3b6645 | 197:e1bc8c4cbb1a |
---|---|
15 | 15 |
16 from pytouhou.utils.interpolator import Interpolator | 16 from pytouhou.utils.interpolator import Interpolator |
17 from pytouhou.vm.anmrunner import ANMRunner | 17 from pytouhou.vm.anmrunner import ANMRunner |
18 from pytouhou.game.sprite import Sprite | 18 from pytouhou.game.sprite import Sprite |
19 from pytouhou.game.bullet import Bullet | 19 from pytouhou.game.bullet import Bullet |
20 from pytouhou.game.item import Item | |
21 from math import cos, sin, atan2, pi | 20 from math import cos, sin, atan2, pi |
22 | 21 |
23 | 22 |
24 class Enemy(object): | 23 class Enemy(object): |
25 def __init__(self, pos, life, _type, bonus_dropped, die_score, anm_wrapper, game): | 24 def __init__(self, pos, life, _type, bonus_dropped, die_score, anm_wrapper, game): |