X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fwidgets%2Fplayer_bits.py;fp=naja%2Fwidgets%2Fplayer_bits.py;h=e82f173df4cb0d0e5a84c1c6b2ee0132d5f63bc7;hb=847d271607652c00e62298a37987aae452719b61;hp=0000000000000000000000000000000000000000;hpb=d7291141b604ffc7941074ae1adb9596c5f314ce;p=naja.git diff --git a/naja/widgets/player_bits.py b/naja/widgets/player_bits.py new file mode 100644 index 0000000..e82f173 --- /dev/null +++ b/naja/widgets/player_bits.py @@ -0,0 +1,19 @@ +""" +Widget that holds the player's bits. +""" + +from .base import Widget + + +class PlayerBitsWidget(Widget): + """ + Widget which holds the player's bits. + """ + def __init__(self, pos, image=None): + super(PlayerBitsWidget, self).__init__(pos, (96, 96)) + + def prepare(self): + pass + + def draw(self, surface): + surface.blit(self.surface, self.rect)