1. pygame
  2. Untitled project
  3. pygamegsoc12

Source

pygamegsoc12 / alchemymadness / blocks.py

Diff from to

File alchemymadness/blocks.py

     def action_move_right(self):
         doit = True
         for b in self.grid_positions:
+
             b[0] += 1
             if b[0] >= self.parent.grid_size.w:
                 doit = False
 
         self.on_moved()
 
+    def change_color(self, color):
+        for b in self.sprite_group:
+            b.mix_color(color, 1)
+
 
 class Grid(object):
     """ Contains Blocks()