The endless pointlessness of level progression
[koperkapel.git] / koperkapel / gamelib / tiles.py
index 382a2eab8bf72fa11cccf9ea0b25d21366e8761a..69ffbe83e901f174264eea8d37e086c8b36193bc 100644 (file)
@@ -60,11 +60,21 @@ class Wall(RandomizedTile):
 class Underground(RandomizedTile):
     IMGDIR = "underground"
 
+class Grate(Tile):
+    IMG = os.path.join('grate', 'grate')
+    TILESET = 'bunker'
+
+
+class Exit(Tile):
+    IMG = os.path.join('exit', 'exit')
+    TILESET = 'bunker'
+
+
 class Tunnel(OrientatedTile):
 
     @classmethod
     def image(cls, neighbors):
-        connections = [True if 'walk' in x['behaviour'] else False for x in neighbors]
+        connections = [True if 'crawl' in x['behaviour'] else False for x in neighbors]
         conn_count = connections.count(True)
         # simple cases
         cls.ANGLE = 0