comparison pytouhou/games/eosd.py @ 286:4838e9bab0f9

Implement dialogs (MSG files).
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 12 Feb 2012 16:06:03 +0100
parents f037bca24f2d
children e7f40bff72fc
comparison
equal deleted inserted replaced
285:2100276c289d 286:4838e9bab0f9
56 ItemType(etama3, 2, 9), #Big power 56 ItemType(etama3, 2, 9), #Big power
57 ItemType(etama3, 3, 10), #Bomb 57 ItemType(etama3, 3, 10), #Bomb
58 ItemType(etama3, 4, 11), #Full power 58 ItemType(etama3, 4, 11), #Full power
59 ItemType(etama3, 5, 12), #1up 59 ItemType(etama3, 5, 12), #1up
60 ItemType(etama3, 6, 13)] #Star 60 ItemType(etama3, 6, 13)] #Star
61
62 player_face = player_states[0].character // 2
63 enemy_face = [('face03a.anm', 'face03b.anm'),
64 ('face05a.anm',),
65 ('face06a.anm', 'face06b.anm'),
66 ('face08a.anm', 'face08b.anm'),
67 ('face09a.anm', 'face09b.anm'),
68 ('face09b.anm', 'face10a.anm', 'face10b.anm'),
69 ('face08a.anm', 'face12a.anm', 'face12b.anm', 'face12c.anm')]
70 self.msg = resource_loader.get_msg('msg%d.dat' % stage)
71 self.msg_anm_wrapper = resource_loader.get_anm_wrapper2(('face0%da.anm' % player_face,
72 'face0%db.anm' % player_face,
73 'face0%dc.anm' % player_face)
74 + enemy_face[stage - 1],
75 (0, 2, 4, 8, 10, 11, 12))
61 76
62 characters = resource_loader.get_eosd_characters() 77 characters = resource_loader.get_eosd_characters()
63 players = [EoSDPlayer(state, self, resource_loader, characters[state.character]) for state in player_states] 78 players = [EoSDPlayer(state, self, resource_loader, characters[state.character]) for state in player_states]
64 79
65 Game.__init__(self, resource_loader, players, stage, rank, difficulty, 80 Game.__init__(self, resource_loader, players, stage, rank, difficulty,