Mercurial > touhou
comparison pytouhou/game/enemy.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 | dbe6b7b2d3fc |
children | e1bc8c4cbb1a |
comparison
equal
deleted
inserted
replaced
192:5e84dfd153ab | 193:9f58e2a6e950 |
---|---|
185 # in other stages they are blue. | 185 # in other stages they are blue. |
186 if color == 0: | 186 if color == 0: |
187 if self._game.stage in [1, 2, 7]: | 187 if self._game.stage in [1, 2, 7]: |
188 color = 3 | 188 color = 3 |
189 for i in range(number): | 189 for i in range(number): |
190 self._game.new_particle((self.x, self.y), color, 4., 256, delay=False) #TODO: find the real size. | 190 self._game.new_particle((self.x, self.y), color, 4., 256) #TODO: find the real size. |
191 | 191 |
192 | 192 |
193 def set_pos(self, x, y, z): | 193 def set_pos(self, x, y, z): |
194 self.x, self.y = x, y | 194 self.x, self.y = x, y |
195 self.interpolator = Interpolator((x, y)) | 195 self.interpolator = Interpolator((x, y)) |