diff pytouhou/vm/eclrunner.py @ 441:e8dc95a2a287

Make pytouhou.game.enemy an extension type.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 10 Aug 2013 19:59:17 +0200
parents c9433188ffdb
children b0abb05811f7
line wrap: on
line diff
--- a/pytouhou/vm/eclrunner.py
+++ b/pytouhou/vm/eclrunner.py
@@ -815,8 +815,7 @@ class ECLRunner(object):
 
     @instruction(103)
     def set_hitbox(self, width, height, depth):
-        self._enemy.hitbox = (width, height)
-        self._enemy.hitbox_half_size = (width / 2., height / 2.)
+        self._enemy.set_hitbox(width, height)
 
 
     @instruction(104)