Mercurial > touhou
diff pytouhou/game/bullet.py @ 108:2a03940deea3
Move everything graphical to pytouhou.opengl!
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Tue, 06 Sep 2011 00:26:13 +0200 |
parents | 5d9052b9a4e8 |
children | 92772413b5a6 |
line wrap: on
line diff
--- a/pytouhou/game/bullet.py +++ b/pytouhou/game/bullet.py @@ -98,18 +98,6 @@ class Bullet(object): return True - def get_objects_by_texture(self, objects_by_texture): - sprite = self._sprite - sprite.update_vertices_uvs_colors() - key = sprite.anm.first_name, sprite.anm.secondary_name - key = (key, sprite.blendfunc) - rec = objects_by_texture.setdefault(key, ([], [], [])) - vertices = ((x + self.x, y + self.y, z) for x, y, z in sprite._vertices) - rec[0].extend(vertices) - rec[1].extend(sprite._uvs) - rec[2].extend(sprite._colors) - - def set_anim(self, anim_idx=None, sprite_idx_offset=None): if anim_idx is not None: self.anim_idx = anim_idx