Source

pygamegsoc12 / alchemymadness / main.py

Diff from to

alchemymadness/main.py

 
 import resources
 import potion
+import block
 
 SCREEN_SIZE = (800, 600)
 
     screen = pygame.display.set_mode(SCREEN_SIZE)
     clock = pygame.time.Clock()
     going = True
-    
+
     resources.init()
 
     screen.fill((0,0,0))
     # Initialise level
     pot = potion.Potion()
     pot.set_formula(3, 5, 3)
-    sprites = pygame.sprite.LayeredDirty(pot)
+    bl = block.Block((255,0,0))
+    sprites = pygame.sprite.LayeredDirty(pot, bl)
 
     #TEST
     pot.add_color((0,0,255))
         # Update sprites
         sprites.clear(screen, resources.background)
         sprites.update(time)
-        
+
         # Draw sprites
         rects = sprites.draw(screen)
         pygame.display.update(rects)
-        
+
 
     # End game
     score = pot.get_score()