Mercurial > touhou
comparison pytouhou/games/eosd.py @ 492:887de1309491
Add friendly fire in netplay.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 21 Sep 2013 20:26:39 +0200 |
parents | 711c75115675 |
children | 6be9c99a3a24 |
comparison
equal
deleted
inserted
replaced
491:2276229282fd | 492:887de1309491 |
---|---|
80 | 80 |
81 | 81 |
82 class EoSDGame(Game): | 82 class EoSDGame(Game): |
83 def __init__(self, resource_loader, player_states, stage, rank, difficulty, | 83 def __init__(self, resource_loader, player_states, stage, rank, difficulty, |
84 common, nb_bullets_max=640, width=384, height=448, prng=None, | 84 common, nb_bullets_max=640, width=384, height=448, prng=None, |
85 hints=None): | 85 hints=None, friendly_fire=True): |
86 | 86 |
87 self.etama = common.etama #XXX | 87 self.etama = common.etama #XXX |
88 try: | 88 try: |
89 self.enm_anm = resource_loader.get_multi_anm(('stg%denm.anm' % stage, | 89 self.enm_anm = resource_loader.get_multi_anm(('stg%denm.anm' % stage, |
90 'stg%denm2.anm' % stage)) | 90 'stg%denm2.anm' % stage)) |
122 self.resource_loader = resource_loader #XXX: currently used for texture preload in pytouhou.ui.gamerunner. Wipe it! | 122 self.resource_loader = resource_loader #XXX: currently used for texture preload in pytouhou.ui.gamerunner. Wipe it! |
123 | 123 |
124 Game.__init__(self, players, stage, rank, difficulty, | 124 Game.__init__(self, players, stage, rank, difficulty, |
125 common.bullet_types, common.laser_types, | 125 common.bullet_types, common.laser_types, |
126 common.item_types, nb_bullets_max, width, height, prng, | 126 common.item_types, nb_bullets_max, width, height, prng, |
127 common.interface, hints) | 127 common.interface, hints, friendly_fire) |
128 | 128 |
129 | 129 |
130 | 130 |
131 class EoSDInterface(object): | 131 class EoSDInterface(object): |
132 def __init__(self, resource_loader, player_state): | 132 def __init__(self, resource_loader, player_state): |