X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=koperkapel%2Fgamelib%2Ftiles.py;h=69ffbe83e901f174264eea8d37e086c8b36193bc;hb=31ec0ae3dc918618849b41c4df6b064d6a47c69f;hp=382a2eab8bf72fa11cccf9ea0b25d21366e8761a;hpb=a83771ae9524d61fd5422ff1c05dccc7be0c8ee8;p=koperkapel.git diff --git a/koperkapel/gamelib/tiles.py b/koperkapel/gamelib/tiles.py index 382a2ea..69ffbe8 100644 --- a/koperkapel/gamelib/tiles.py +++ b/koperkapel/gamelib/tiles.py @@ -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