From 22dece0324d21625e0b858e0e9fb593762616ebe Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Mon, 12 May 2014 00:01:35 +0200 Subject: [PATCH] Use EIGHT_BIT for game bits. --- naja/widgets/game_bits.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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( -- 2.34.1