projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The Great Renaming of locks and keys.
[naja.git]
/
naja
/
widgets
/
robot.py
diff --git
a/naja/widgets/robot.py
b/naja/widgets/robot.py
index 2eeb1d39cd2d663d514989a17a4e6557e9e7a80b..2fa0d11a178b3dca09f2353ee42d0c658b25172a 100644
(file)
--- a/
naja/widgets/robot.py
+++ b/
naja/widgets/robot.py
@@
-1,18
+1,15
@@
"""Widget to draw the player on the screen"""
"""Widget to draw the player on the screen"""
-import pygame.locals as pgl
-
from naja.constants import (PLAYER_SIZE, BIT_SIZE, TILE_SIZE, BITS)
from naja.constants import (PLAYER_SIZE, BIT_SIZE, TILE_SIZE, BITS)
-from naja.events import finish_event
from naja.resources import resources
from naja.resources.mutators import EIGHT_BIT
from naja.widgets.base import Widget
IMG_MAP = {
from naja.resources import resources
from naja.resources.mutators import EIGHT_BIT
from naja.widgets.base import Widget
IMG_MAP = {
-
BITS.CYAN: 'board/robot_cyan
.png',
-
BITS.YELLOW: 'board/robot_yellow
.png',
-
BITS.MAGENTA: 'board/robot_magenta
.png',
-
}
+
BITS.RED: 'board/robot_red
.png',
+
BITS.GREEN: 'board/robot_green
.png',
+
BITS.BLUE: 'board/robot_blue
.png',
+}
class RobotWidget(Widget):
class RobotWidget(Widget):