Mercurial > touhou
comparison pytouhou/game/itemtype.py @ 229:5afc75f71fed
Add “SHT” support to EoSD, and do a little cleanup.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 30 Dec 2011 18:37:06 +0100 |
parents | e1bc8c4cbb1a |
children | c9433188ffdb |
comparison
equal
deleted
inserted
replaced
228:8f4cd1c01d22 | 229:5afc75f71fed |
---|---|
1 from pytouhou.game.sprite import Sprite | 1 from pytouhou.game.sprite import Sprite |
2 | 2 |
3 class ItemType(object): | 3 class ItemType(object): |
4 def __init__(self, anm_wrapper, sprite_index, indicator_sprite_index, hitbox_size=38.): | 4 def __init__(self, anm_wrapper, sprite_index, indicator_sprite_index): |
5 self.anm_wrapper = anm_wrapper | 5 self.anm_wrapper = anm_wrapper |
6 self.sprite = Sprite() | 6 self.sprite = Sprite() |
7 self.sprite.anm, self.sprite.texcoords = anm_wrapper.get_sprite(sprite_index) | 7 self.sprite.anm, self.sprite.texcoords = anm_wrapper.get_sprite(sprite_index) |
8 self.indicator_sprite = Sprite() | 8 self.indicator_sprite = Sprite() |
9 self.indicator_sprite.anm, self.indicator_sprite.texcoords = anm_wrapper.get_sprite(indicator_sprite_index) | 9 self.indicator_sprite.anm, self.indicator_sprite.texcoords = anm_wrapper.get_sprite(indicator_sprite_index) |
10 self.hitbox_size = hitbox_size |