aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-09-15 08:28:27 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-09-15 08:28:27 +0100
commit8319802621e2290e471b12077ff6a283523c7833 (patch)
tree3659ee7babd57172dba8e1da4becf8f61a4cc522
parent975c98c51a2bb3fdf45409e7cb5d3d82ba323379 (diff)
downloadubox-msx-lib-8319802621e2290e471b12077ff6a283523c7833.tar.gz
ubox-msx-lib-8319802621e2290e471b12077ff6a283523c7833.zip
Revert "FIX: the sprite order changed, green MUST be green"
This reverts commit 975c98c51a2bb3fdf45409e7cb5d3d82ba323379.
-rw-r--r--game/src/game.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/game/src/game.c b/game/src/game.c
index 15130ee..62d5edb 100644
--- a/game/src/game.c
+++ b/game/src/game.c
@@ -361,13 +361,13 @@ void update_player()
sp.y = self->y - 1;
// find which pattern to show
sp.pattern = self->pat + (walk_frames[self->frame] + self->dir * 3) * 8;
- // white
- sp.attr = 15;
+ // green
+ sp.attr = 12;
spman_alloc_fixed_sprite(&sp);
// second one is 4 patterns away (16x16 sprites)
sp.pattern += 4;
- // green
- sp.attr = 12;
+ // white
+ sp.attr = 15;
spman_alloc_fixed_sprite(&sp);
}