projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More location deck things.
[naja.git]
/
naja
/
widgets
/
game_bits.py
diff --git
a/naja/widgets/game_bits.py
b/naja/widgets/game_bits.py
index a5dbeae604c0a576faba7d87d71286b829eda92a..973c2b80f20abd80f524d002554b173995977088 100644
(file)
--- 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
import pygame
-from naja.constants import BIT_SIZE
, BITS
+from naja.constants import BIT_SIZE
from naja.resources import resources
from naja.resources import resources
+from naja.resources.mutators import EIGHT_BIT
from naja.widgets.base import Widget
from naja.widgets.base import Widget
@@
-24,9
+25,9
@@
class GameBitsWidget(Widget):
bits = []
bits.extend(
bits = []
bits.extend(
- (i < health, 'health', ()) for i in range(4))
+ (i < health, 'health', (
EIGHT_BIT,
)) for i in range(4))
bits.extend(
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(
for pos, (is_set, image, transforms) in enumerate(bits):
img = resources.get_image(