diff mamba/world.py @ 182:0a955d2536f0

Painted Jezebel! (Assuming you name your snake Jezebel.)
author Jeremy Thurgood <firxen@gmail.com>
date Wed, 14 Sep 2011 16:27:11 +0200
parents 061d711ba570
children 275f0be6946c
line wrap: on
line diff
--- a/mamba/world.py	Wed Sep 14 15:27:27 2011 +0200
+++ b/mamba/world.py	Wed Sep 14 16:27:11 2011 +0200
@@ -28,8 +28,7 @@
 
         self.snake.update(dt, self)
 
-    def interact(self, tile_pos):
-        tile = self.level.get_tile(tile_pos)
+    def interact(self, segment):
+        tile = self.level.get_tile(segment.tile_pos)
         if tile is not None and tile.alive:
-            print "Interact:", tile_pos, tile
-            tile.interact(self.snake)
+            tile.interact(self.snake, segment)