Mercurial > touhou
changeset 105:572740acdb25
A few changes in the execution order to match 102h.exe
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Mon, 05 Sep 2011 17:18:47 +0200 |
parents | 6c59d0eeb5fa |
children | c7847bfed427 |
files | pytouhou/game/enemy.py pytouhou/vm/eclrunner.py |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pytouhou/game/enemy.py +++ b/pytouhou/game/enemy.py @@ -132,6 +132,7 @@ class Enemy(object): def set_anim(self, index): self._sprite = Sprite() self._anmrunner = ANMRunner(self._anm_wrapper, index, self._sprite) + self._anmrunner.run_frame() def set_pos(self, x, y, z):
--- a/pytouhou/vm/eclrunner.py +++ b/pytouhou/vm/eclrunner.py @@ -77,7 +77,9 @@ class ECLMainRunner(object): if z < -990: #102h.exe@0x411881 y = self._game_state.prng.rand_double() * 800 enemy = self._new_enemy_func((x, y), life, instr_type) - self.processes.append(ECLRunner(self._ecl, sub, enemy, self._game_state)) + process = ECLRunner(self._ecl, sub, enemy, self._game_state) + self.processes.append(process) + process.run_iteration()