Placeholder tile
authorNeil <neil@dip.sun.ac.za>
Sun, 11 May 2014 16:21:40 +0000 (18:21 +0200)
committerNeil <neil@dip.sun.ac.za>
Sun, 11 May 2014 16:21:50 +0000 (18:21 +0200)
naja/widgets/tile.py [new file with mode: 0644]

diff --git a/naja/widgets/tile.py b/naja/widgets/tile.py
new file mode 100644 (file)
index 0000000..6750584
--- /dev/null
@@ -0,0 +1,15 @@
+#from naja.constants import TILE_SIZE
+from naja.widgets.base import Widget
+from naja.resources import resources
+
+
+class TileWidget(Widget):
+    """Widget which holds a tile on the game board."""
+    def __init__(self, pos, image=None):
+        super(TileWidget, self).__init__(pos, (96, 96))
+
+    def prepare(self):
+        pass
+
+    def draw(self, surface):
+        surface.blit(self.surface, self.rect)