diff pytouhou/game/bullet.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 887de1309491
children e35bef07290d
line wrap: on
line diff
--- a/pytouhou/game/bullet.pyx
+++ b/pytouhou/game/bullet.pyx
@@ -80,9 +80,7 @@ cdef class Bullet(Element):
 
 
     cdef bint is_visible(self, unsigned int screen_width, unsigned int screen_height):
-        cdef double tw, th
-
-        tw, th = self.sprite.texcoords[2:]
+        tw, th = self.sprite._texcoords[2], self.sprite._texcoords[3]
         x, y = self.x, self.y
 
         max_x = tw / 2