glass
authorFrank DeMarco <frank.s.demarco@gmail.com>
Sun, 29 Jun 2014 11:05:33 +0000 (20:05 +0900)
committerFrank DeMarco <frank.s.demarco@gmail.com>
Sun, 29 Jun 2014 11:05:33 +0000 (20:05 +0900)
hair_on_arm/HairOnArm.py
resource/img/television-alien-city/my-hand-fever.png

index d77d8a1..2ca6962 100644 (file)
@@ -593,7 +593,7 @@ class Lens(Animation):
                                                "lens-rim")).convert_alpha()
         self.rect = rect = self.rim_mask.get_rect()
         rect.center = ds.get_rect().centerx, \
-                      self.parent.parent.gate.frame_rect.top - 50
+                      self.parent.parent.gate.frame_rect.top - 60
         self.shadow_mask = self.rim_mask.subsurface((0, rect.h / 2, rect.w,
                                                      rect.h  - rect.h / 2))
         self.shadow_rect = self.shadow_mask.get_rect()
@@ -633,6 +633,10 @@ class Lens(Animation):
         plate = Surface(mask.get_size(), SRCALPHA)
         plate.fill((255, 255, 255))
         mask.blit(plate, (0, 0), None, BLEND_RGB_MAX)
+        self.glass_surface = load(self.get_resource("image", "lens-glass")). \
+                             convert_alpha()
+        self.glass_surface_rect = self.glass_surface.get_rect()
+        self.glass_surface_rect.center = self.rect.center
         self.set_colors()
 
     def scan(self):
@@ -667,7 +671,8 @@ class Lens(Animation):
 
     def draw_background(self):
         ds = self.display_surface
-        ds.blit(self.gradient_surfaces[1], self.gradient_rect)
+        ds.blit(self.glass_surface, self.glass_surface_rect)
+        ds.blit(self.gradient_surface, self.gradient_rect)
 
     def draw_foreground(self):
         ds = self.display_surface
index ae31806..8933a89 100644 (file)
Binary files a/resource/img/television-alien-city/my-hand-fever.png and b/resource/img/television-alien-city/my-hand-fever.png differ