Mercurial > touhou
diff pytouhou/game/enemy.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 | c7847bfed427 |
children | e93a7ed4f203 |
line wrap: on
line diff
--- a/pytouhou/game/enemy.py +++ b/pytouhou/game/enemy.py @@ -184,22 +184,6 @@ class Enemy(object): return True - def get_objects_by_texture(self, objects_by_texture): - if not self._sprite: - return - - 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 update(self): x, y = self.x, self.y if self.interpolator: