Mercurial > touhou
comparison pytouhou/game/itemtype.py @ 615:d1f0bb0b7a17
Don’t inherit explicitely from object, we are not on Python 2.7 anymore. :)
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 28 Mar 2015 21:40:51 +0100 |
parents | b32cef75df59 |
children |
comparison
equal
deleted
inserted
replaced
614:2cf518129725 | 615:d1f0bb0b7a17 |
---|---|
1 class ItemType(object): | 1 class ItemType: |
2 def __init__(self, anm, sprite_index, indicator_sprite_index): | 2 def __init__(self, anm, sprite_index, indicator_sprite_index): |
3 self.anm = anm | 3 self.anm = anm |
4 self.sprite = Sprite() | 4 self.sprite = Sprite() |
5 self.sprite.anm = anm | 5 self.sprite.anm = anm |
6 self.sprite.texcoords = anm.sprites[sprite_index] | 6 self.sprite.texcoords = anm.sprites[sprite_index] |