Mercurial > touhou
comparison pytouhou/games/eosd.py @ 339:7a05edbab88a
Implement continues when the lives fall bellow 0.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 04 Jul 2012 21:38:00 +0200 |
parents | 2fcdb8966957 |
children | 61caded6b4f5 |
comparison
equal
deleted
inserted
replaced
338:65453340ae95 | 339:7a05edbab88a |
---|---|
31 | 31 |
32 | 32 |
33 class EoSDGame(Game): | 33 class EoSDGame(Game): |
34 def __init__(self, resource_loader, player_states, stage, rank, difficulty, | 34 def __init__(self, resource_loader, player_states, stage, rank, difficulty, |
35 bullet_types=None, laser_types=None, item_types=None, | 35 bullet_types=None, laser_types=None, item_types=None, |
36 nb_bullets_max=640, width=384, height=448, prng=None, bgms=None): | 36 nb_bullets_max=640, width=384, height=448, prng=None, bgms=None, continues=0): |
37 | 37 |
38 if not bullet_types: | 38 if not bullet_types: |
39 etama3 = resource_loader.get_anm_wrapper(('etama3.anm',)) | 39 etama3 = resource_loader.get_anm_wrapper(('etama3.anm',)) |
40 etama4 = resource_loader.get_anm_wrapper(('etama4.anm',)) | 40 etama4 = resource_loader.get_anm_wrapper(('etama4.anm',)) |
41 bullet_types = [BulletType(etama3, 0, 11, 14, 15, 16, hitbox_size=4, | 41 bullet_types = [BulletType(etama3, 0, 11, 14, 15, 16, hitbox_size=4, |
110 source = None | 110 source = None |
111 self.bgms.append(source) | 111 self.bgms.append(source) |
112 | 112 |
113 Game.__init__(self, resource_loader, players, stage, rank, difficulty, | 113 Game.__init__(self, resource_loader, players, stage, rank, difficulty, |
114 bullet_types, laser_types, item_types, nb_bullets_max, | 114 bullet_types, laser_types, item_types, nb_bullets_max, |
115 width, height, prng, interface) | 115 width, height, prng, interface, continues) |
116 | 116 |
117 | 117 |
118 | 118 |
119 class EoSDInterface(object): | 119 class EoSDInterface(object): |
120 def __init__(self, states, resource_loader): | 120 def __init__(self, states, resource_loader): |