comparison eclviewer.py @ 122:174324a4da51

Add support for launch animations! (Warning: slow :()
author Thibaut Girka <thib@sitedethib.com>
date Sat, 10 Sep 2011 01:26:30 +0200
parents fad7b44cebf2
children 11ab06f4c4c6
comparison
equal deleted inserted replaced
121:1bc0ad774ed4 122:174324a4da51
17 import os 17 import os
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.game import Game 22 from pytouhou.game.games import EoSDGame
23 from pytouhou.game.player import Player 23 from pytouhou.game.player import Player
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 = Game(resource_loader, [Player()], stage_num, 3, 16) 30 game = EoSDGame(resource_loader, [Player()], 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,))