Mercurial > touhou
comparison 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 |
comparison
equal
deleted
inserted
replaced
24:93aa1b55d97c | 25:cc864aadc733 |
---|---|
59 except KeyError: | 59 except KeyError: |
60 pass | 60 pass |
61 else: | 61 else: |
62 anims.append(enemies2_anim) | 62 anims.append(enemies2_anim) |
63 enemy_manager = EnemyManager(stage, AnmWrapper(anims), ecl) | 63 enemy_manager = EnemyManager(stage, AnmWrapper(anims), ecl) |
64 texture_manager.preload(anims) | |
64 | 65 |
65 background_anim = Animations.read(BytesIO(archive.extract('stg%dbg.anm' % stage_num))) | 66 background_anim = Animations.read(BytesIO(archive.extract('stg%dbg.anm' % stage_num))) |
66 background = Background(stage, AnmWrapper((background_anim,))) | 67 background = Background(stage, AnmWrapper((background_anim,))) |
68 texture_manager.preload((background_anim,)) | |
67 | 69 |
68 print(enemy_manager.stage.name) | 70 print(enemy_manager.stage.name) |
69 | 71 |
70 frame = 0 | 72 frame = 0 |
71 | 73 |