projects
/
koperkapel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Final screenshots.
[koperkapel.git]
/
koperkapel
/
gamelib
/
keypad.py
diff --git
a/koperkapel/gamelib/keypad.py
b/koperkapel/gamelib/keypad.py
index 5658db4d6253a04baa3db42f298ab04037e3fdff..c7961dbc3484e6af5900523e6e290be2ddd9195c 100644
(file)
--- a/
koperkapel/gamelib/keypad.py
+++ b/
koperkapel/gamelib/keypad.py
@@
-4,8
+4,6
@@
import os
from pgzero.loaders import images
from pgzero.ptext import getsurf
from ..actors.orientatedsurf import SurfActor
from pgzero.loaders import images
from pgzero.ptext import getsurf
from ..actors.orientatedsurf import SurfActor
-from ..constants import TILE_SIZE
-from ..serums import SERUM_OVERLAY_COLORS
class Keypad(SurfActor):
class Keypad(SurfActor):
@@
-15,7
+13,10
@@
class Keypad(SurfActor):
self.game_pos = (x, y)
self.required_smart = required_smart
surf = images.load(os.path.join('fixtures', 'keypad')).copy()
self.game_pos = (x, y)
self.required_smart = required_smart
surf = images.load(os.path.join('fixtures', 'keypad')).copy()
- surf.blit(getsurf(str(required_smart), owidth=2, ocolor=SERUM_OVERLAY_COLORS["smart"], color="black"), (0, 0))
+ ocolor = (96, 96, 128, 255)
+ surf.blit(getsurf(
+ str(required_smart), owidth=2,
+ ocolor=ocolor, color="black"), (0, 0))
super().__init__(surf, anchor=(1, 1))
def activate(self, smart):
super().__init__(surf, anchor=(1, 1))
def activate(self, smart):