comparison eclviewer.py @ 130:11ab06f4c4c6

Introduce characters!
author Thibaut Girka <thib@sitedethib.com>
date Sat, 10 Sep 2011 22:48:56 +0200
parents 174324a4da51
children fab7ad2f0d8b
comparison
equal deleted inserted replaced
129:284ac8f97a96 130:11ab06f4c4c6
18 18
19 from pytouhou.resource.loader import Loader 19 from pytouhou.resource.loader import Loader
20 from pytouhou.game.background import Background 20 from pytouhou.game.background import Background
21 from pytouhou.opengl.gamerenderer import GameRenderer 21 from pytouhou.opengl.gamerenderer import GameRenderer
22 from pytouhou.game.games import EoSDGame 22 from pytouhou.game.games import EoSDGame
23 from pytouhou.game.player import Player 23 from pytouhou.game.player import PlayerState
24 24
25 25
26 def main(path, stage_num): 26 def main(path, stage_num):
27 resource_loader = Loader() 27 resource_loader = Loader()
28 resource_loader.scan_archives(os.path.join(path, name) 28 resource_loader.scan_archives(os.path.join(path, name)
29 for name in ('CM.DAT', 'ST.DAT')) 29 for name in ('CM.DAT', 'ST.DAT'))
30 game = EoSDGame(resource_loader, [Player()], stage_num, 3, 16) 30 game = EoSDGame(resource_loader, [PlayerState()], stage_num, 3, 16)
31 31
32 # Load stage data 32 # Load stage data
33 stage = resource_loader.get_stage('stage%d.std' % stage_num) 33 stage = resource_loader.get_stage('stage%d.std' % stage_num)
34 34
35 background_anm_wrapper = resource_loader.get_anm_wrapper(('stg%dbg.anm' % stage_num,)) 35 background_anm_wrapper = resource_loader.get_anm_wrapper(('stg%dbg.anm' % stage_num,))