The roaches have eyes!
authorSimon Cross <hodgestar@gmail.com>
Fri, 4 Mar 2016 20:27:37 +0000 (22:27 +0200)
committerSimon Cross <hodgestar@gmail.com>
Fri, 4 Mar 2016 20:27:37 +0000 (22:27 +0200)
koperkapel/roaches.py

index 9ac79bec0431fb0453fdf41d66c7a06300fdfc38..586b508a394be68fe10f01aed14b5869d9f67a17 100644 (file)
@@ -31,8 +31,10 @@ class RoachFactory:
         self.frames = 4
 
     def assemble_frame(self, i, roach_data):
-        base = images.load("roach%s/roach_%d" % (self.suffix, i + 1))
-        return base
+        roach = images.load("roach%s/roach_%d" % (self.suffix, i + 1))
+        eyes = images.load("roach%s/eyes_%d" % (self.suffix, i + 1))
+        roach.blit(eyes, (0, 0))
+        return roach
 
     def assemble(self, roach_data):
         frames = [