Mercurial > touhou
diff eclviewer.py @ 25:cc864aadc733
Preload enemy and background textures
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Fri, 12 Aug 2011 19:25:08 +0200 |
parents | bf225780973f |
children | a10e3f44a883 |
line wrap: on
line diff
--- a/eclviewer.py +++ b/eclviewer.py @@ -61,9 +61,11 @@ def main(path, stage_num): else: anims.append(enemies2_anim) enemy_manager = EnemyManager(stage, AnmWrapper(anims), ecl) + texture_manager.preload(anims) background_anim = Animations.read(BytesIO(archive.extract('stg%dbg.anm' % stage_num))) background = Background(stage, AnmWrapper((background_anim,))) + texture_manager.preload((background_anim,)) print(enemy_manager.stage.name)