From 32560164fdaed577d985b4bc1035153435bc6241 Mon Sep 17 00:00:00 2001 From: adrianna Date: Thu, 3 Mar 2016 17:21:50 +0200 Subject: [PATCH] fixed random tile rotationa nd made OrientatedTile inherit fromTile --- koperkapel/loaders/levelloader.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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): -- 2.34.1