Mercurial > touhou
diff eclviewer.py @ 50:811cefefb5c8
Fix a few bugs and add support for a few instructions
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Mon, 22 Aug 2011 21:16:47 +0200 |
parents | cbe1cb50f2fd |
children | ab826bc29aa2 |
line wrap: on
line diff
--- a/eclviewer.py +++ b/eclviewer.py @@ -19,6 +19,7 @@ from pytouhou.game.background import Bac from pytouhou.game.enemymanager import EnemyManager from pytouhou.opengl.texture import TextureManager from pytouhou.game.game import GameState +from pytouhou.game.player import Player import OpenGL OpenGL.FORWARD_COMPATIBLE_ONLY = True @@ -62,7 +63,7 @@ def main(path, stage_num): pass else: anims.append(enemies2_anim) - enemy_manager = EnemyManager(stage, AnmWrapper(anims), ecl, GameState([], stage_num, 0, 16)) + enemy_manager = EnemyManager(stage, AnmWrapper(anims), ecl, GameState([Player()], stage_num, 0, 16)) texture_manager.preload(anims) background_anim = Animations.read(BytesIO(archive.extract('stg%dbg.anm' % stage_num)))