aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-09-15 08:06:54 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-09-15 08:06:54 +0100
commit975c98c51a2bb3fdf45409e7cb5d3d82ba323379 (patch)
treefb55b8cc0ae77cbfe4a54629e1ac492437012b21
parent99edcbf05bdff1ec53f39b87be3594cee10658cc (diff)
downloadubox-msx-lib-975c98c51a2bb3fdf45409e7cb5d3d82ba323379.tar.gz
ubox-msx-lib-975c98c51a2bb3fdf45409e7cb5d3d82ba323379.zip
FIX: the sprite order changed, green MUST be green
-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 62d5edb..15130ee 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;
- // green
- sp.attr = 12;
+ // white
+ sp.attr = 15;
spman_alloc_fixed_sprite(&sp);
// second one is 4 patterns away (16x16 sprites)
sp.pattern += 4;
- // white
- sp.attr = 15;
+ // green
+ sp.attr = 12;
spman_alloc_fixed_sprite(&sp);
}