Mercurial > touhou
comparison pytouhou/vm/eclrunner.py @ 100:5c40cc1b8019
Use game's frame for interpolation. No more time manipulation interfering with interpolators!
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Mon, 05 Sep 2011 00:29:31 +0200 |
parents | 68aa8bf00c88 |
children | ad9297e0fbf2 |
comparison
equal
deleted
inserted
replaced
99:68aa8bf00c88 | 100:5c40cc1b8019 |
---|---|
150 callback = self._handlers[instr_type] | 150 callback = self._handlers[instr_type] |
151 except KeyError: | 151 except KeyError: |
152 logger.warn('unhandled opcode %d (args: %r)', instr_type, args) | 152 logger.warn('unhandled opcode %d (args: %r)', instr_type, args) |
153 else: | 153 else: |
154 callback(self, *args) | 154 callback(self, *args) |
155 logger.debug('executed opcode %d (args: %r)', instr_type, args) | |
155 | 156 |
156 self.frame += 1 | 157 self.frame += 1 |
157 return True | 158 return True |
158 | 159 |
159 | 160 |