Mercurial > touhou
view pytouhou/game/itemtype.py @ 444:f26c8ab57257
Use a simple for loop to determine the power level of the player; fixes a traceback when the SHT has no shot at all.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 30 Aug 2013 14:16:08 +0200 |
parents | c9433188ffdb |
children | b32cef75df59 |
line wrap: on
line source
from pytouhou.game.sprite import Sprite class ItemType(object): def __init__(self, anm, sprite_index, indicator_sprite_index): self.anm = anm self.sprite = Sprite() self.sprite.anm = anm self.sprite.texcoords = anm.sprites[sprite_index] self.indicator_sprite = Sprite() self.indicator_sprite.anm = anm self.indicator_sprite.texcoords = anm.sprites[indicator_sprite_index]