projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d477cf
)
Placeholder tile
author
Neil
<neil@dip.sun.ac.za>
Sun, 11 May 2014 16:21:40 +0000
(18:21 +0200)
committer
Neil
<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]
patch
|
blob
diff --git a/naja/widgets/tile.py
b/naja/widgets/tile.py
new file mode 100644
(file)
index 0000000..
6750584
--- /dev/null
+++ b/
naja/widgets/tile.py
@@ -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)