From: adrianna Date: Thu, 3 Mar 2016 15:21:50 +0000 (+0200) Subject: fixed random tile rotationa nd made OrientatedTile inherit fromTile X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=32560164fdaed577d985b4bc1035153435bc6241;p=koperkapel.git fixed random tile rotationa nd made OrientatedTile inherit fromTile --- diff --git a/koperkapel/loaders/levelloader.py b/koperkapel/loaders/levelloader.py index 8e47b5c..a4b5b6f 100644 --- a/koperkapel/loaders/levelloader.py +++ b/koperkapel/loaders/levelloader.py @@ -18,9 +18,7 @@ class Tile: raise NotImplementedError() return images.load(os.path.join(cls.TILESET, cls.IMG)) -class OrientatedTile: - IMG = None - TILESET = None +class OrientatedTile(Tile): ANGLE = None @classmethod @@ -36,7 +34,7 @@ class OrientatedTile: class RandomizedTile(Tile): IMGDIR = None TILESET = None - ROTATE = None + ROTATE = True @classmethod def image(cls, neighbors):