diff pytouhou/game/laser.pyx @ 527:db28538cd399

Use Sprite C arrays instead of their tuple representation where it makes sense.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 18 Dec 2013 18:19:08 +0100
parents b32cef75df59
children 53fa73932e9a
line wrap: on
line diff
--- a/pytouhou/game/laser.pyx
+++ b/pytouhou/game/laser.pyx
@@ -39,7 +39,7 @@ cdef class LaserLaunchAnim(Element):
         self.y = laser.base_pos[1] + offset * dy
 
         scale = laser.width / 10. - (offset - laser.start_offset) #TODO: check
-        self.sprite.rescale = (scale, scale)
+        self.sprite._rescale[:] = [scale, scale]
         self.sprite.changed = True
 
         if laser.removed or scale <= 0.: