comparison pytouhou/vm/eclrunner.py @ 74:adac26098408

Handle variables in set_pos instruction (Daiyousei...)
author Thibaut Girka <thib@sitedethib.com>
date Sun, 28 Aug 2011 11:20:35 +0200
parents 7c1f20407b3e
children b3bd421bb895
comparison
equal deleted inserted replaced
73:e4af16a019d3 74:adac26098408
312 self.call(sub, param1, param2) 312 self.call(sub, param1, param2)
313 313
314 314
315 @instruction(43) 315 @instruction(43)
316 def set_pos(self, x, y, z): 316 def set_pos(self, x, y, z):
317 self._enemy.set_pos(x, y, z) 317 self._enemy.set_pos(self._getval(x), self._getval(y), self._getval(z))
318 318
319 319
320 @instruction(45) 320 @instruction(45)
321 def set_angle_speed(self, angle, speed): 321 def set_angle_speed(self, angle, speed):
322 self._enemy.angle, self._enemy.speed = angle, speed 322 self._enemy.angle, self._enemy.speed = angle, speed