X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=naja%2Fwidgets%2Fgame_bits.py;h=973c2b80f20abd80f524d002554b173995977088;hb=22dece0324d21625e0b858e0e9fb593762616ebe;hp=a5dbeae604c0a576faba7d87d71286b829eda92a;hpb=28d44f768d9ff3a741b35c566bb01736c4bb530b;p=naja.git diff --git a/naja/widgets/game_bits.py b/naja/widgets/game_bits.py index a5dbeae..973c2b8 100644 --- a/naja/widgets/game_bits.py +++ b/naja/widgets/game_bits.py @@ -4,8 +4,9 @@ Widget that holds the games's bits. import pygame -from naja.constants import BIT_SIZE, BITS +from naja.constants import BIT_SIZE from naja.resources import resources +from naja.resources.mutators import EIGHT_BIT from naja.widgets.base import Widget @@ -24,9 +25,9 @@ class GameBitsWidget(Widget): bits = [] bits.extend( - (i < health, 'health', ()) for i in range(4)) + (i < health, 'health', (EIGHT_BIT,)) for i in range(4)) bits.extend( - (i < wins, 'win', ()) for i in range(4)) + (i < wins, 'win', (EIGHT_BIT,)) for i in range(4)) for pos, (is_set, image, transforms) in enumerate(bits): img = resources.get_image(