Mercurial > touhou
comparison pytouhou/vm/eclrunner.py @ 193:9f58e2a6e950
Fix particles, fix "random" item popping, change update order to match the original game's more closely.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Fri, 28 Oct 2011 12:38:26 +0200 |
parents | 5e84dfd153ab |
children | efa847ee8b3c |
comparison
equal
deleted
inserted
replaced
192:5e84dfd153ab | 193:9f58e2a6e950 |
---|---|
130 if death_flags < 4: | 130 if death_flags < 4: |
131 if enm._bonus_dropped >= 0: | 131 if enm._bonus_dropped >= 0: |
132 enm.drop_particles(7, 0) | 132 enm.drop_particles(7, 0) |
133 self._game.drop_bonus(enm.x, enm.y, enm._bonus_dropped) | 133 self._game.drop_bonus(enm.x, enm.y, enm._bonus_dropped) |
134 elif enm._bonus_dropped == -1: | 134 elif enm._bonus_dropped == -1: |
135 if self._game.deaths_count % 3: | 135 if self._game.deaths_count % 3 == 0: |
136 enm.drop_particles(10, 0) | 136 enm.drop_particles(10, 0) |
137 self._game.drop_bonus(enm.x, enm.y, self._game.bonus_list[self._game.next_bonus]) | 137 self._game.drop_bonus(enm.x, enm.y, self._game.bonus_list[self._game.next_bonus]) |
138 self._game.next_bonus = (self._game.next_bonus + 1) % 32 | 138 self._game.next_bonus = (self._game.next_bonus + 1) % 32 |
139 else: | 139 else: |
140 enm.drop_particles(4, 0) | 140 enm.drop_particles(4, 0) |