Mercurial > touhou
comparison pytouhou/game/itemtype.py @ 430:c9433188ffdb
Remove AnmWrapper, since ANMs are lists of entries now.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 03 Aug 2013 15:49:04 +0200 |
parents | 5afc75f71fed |
children | b32cef75df59 |
comparison
equal
deleted
inserted
replaced
429:40d5f3083ebc | 430:c9433188ffdb |
---|---|
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): | 4 def __init__(self, anm, sprite_index, indicator_sprite_index): |
5 self.anm_wrapper = anm_wrapper | 5 self.anm = anm |
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 = anm |
8 self.sprite.texcoords = anm.sprites[sprite_index] | |
8 self.indicator_sprite = Sprite() | 9 self.indicator_sprite = Sprite() |
9 self.indicator_sprite.anm, self.indicator_sprite.texcoords = anm_wrapper.get_sprite(indicator_sprite_index) | 10 self.indicator_sprite.anm = anm |
11 self.indicator_sprite.texcoords = anm.sprites[indicator_sprite_index] |