fixed random tile rotationa nd made OrientatedTile inherit fromTile
authoradrianna <adrianna.pinska@gmail.com>
Thu, 3 Mar 2016 15:21:50 +0000 (17:21 +0200)
committeradrianna <adrianna.pinska@gmail.com>
Thu, 3 Mar 2016 15:21:50 +0000 (17:21 +0200)
koperkapel/loaders/levelloader.py

index 8e47b5c150a31e6a7a8221fe7c2187436deb8325..a4b5b6f8dcaa12d7b6d0efeccc75168dd9949df8 100644 (file)
@@ -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):