From: Neil Date: Sun, 11 May 2014 16:21:40 +0000 (+0200) Subject: Placeholder tile X-Git-Tag: 0.1~413^2~3 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=be75518bbe5076736a7a1c75d981449b5ca8d016;p=naja.git Placeholder tile --- diff --git a/naja/widgets/tile.py b/naja/widgets/tile.py new file mode 100644 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)