From e384fb33198a5de926f3a4cf694ef79b3780a0ee Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Fri, 21 Mar 2025 18:19:19 +0100 Subject: [PATCH] scroll: scroll updates are now correctly performed right after moving This prevents the cursor from being displayed incorrectly for a single frame causing a flash. --- src/player.s | 3 ++- src/update.s | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/player.s b/src/player.s index 1dd2db9..bdb5f2a 100644 --- a/src/player.s +++ b/src/player.s @@ -135,7 +135,8 @@ cursor_move: ld a, [cursor_move_x] add a, b ld [cursor_x], a - + + call scroll_update @done: pop af ret diff --git a/src/update.s b/src/update.s index fc5831d..06751b8 100644 --- a/src/update.s +++ b/src/update.s @@ -13,8 +13,6 @@ update_game: call player_update call sim_update - - call scroll_update ret -- 2.30.2