Mercurial > touhou
comparison pytouhou/games/eosd.py @ 516:577c3a88fb67
Merge the lists Game.texts and Game.native_texts into the Game.texts dict.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 11 May 2014 20:25:07 +0200 |
parents | 1bc014f9d572 |
children | 7c3c90468996 |
comparison
equal
deleted
inserted
replaced
515:b3193b43a86c | 516:577c3a88fb67 |
---|---|
134 | 134 |
135 background_anm = resource_loader.get_single_anm('stg%dbg.anm' % stage) | 135 background_anm = resource_loader.get_single_anm('stg%dbg.anm' % stage) |
136 self.background = Background(self.std, background_anm) | 136 self.background = Background(self.std, background_anm) |
137 | 137 |
138 common.interface.start_stage(self, stage) | 138 common.interface.start_stage(self, stage) |
139 self.native_texts = [common.interface.stage_name, common.interface.song_name] | |
140 | 139 |
141 Game.__init__(self, common.players, stage, rank, difficulty, | 140 Game.__init__(self, common.players, stage, rank, difficulty, |
142 common.bullet_types, common.laser_types, | 141 common.bullet_types, common.laser_types, |
143 common.item_types, nb_bullets_max, common.width, | 142 common.item_types, nb_bullets_max, common.width, |
144 common.height, prng, common.interface, hints, | 143 common.height, prng, common.interface, hints, |
145 friendly_fire) | 144 friendly_fire) |
145 | |
146 self.texts['stage_name'] = common.interface.stage_name | |
147 self.texts['song_name'] = common.interface.song_name | |
146 | 148 |
147 | 149 |
148 | 150 |
149 class EoSDInterface(object): | 151 class EoSDInterface(object): |
150 def __init__(self, resource_loader, player_state): | 152 def __init__(self, resource_loader, player_state): |