From: Simon Cross Date: Sun, 11 May 2014 22:01:35 +0000 (+0200) Subject: Use EIGHT_BIT for game bits. X-Git-Tag: 0.1~363 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=22dece0324d21625e0b858e0e9fb593762616ebe;p=naja.git Use EIGHT_BIT for game bits. --- 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(