From: Lukas Krickl Date: Fri, 21 Mar 2025 17:19:19 +0000 (+0100) Subject: scroll: scroll updates are now correctly performed right after moving X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=e384fb33198a5de926f3a4cf694ef79b3780a0ee;p=gbrg%2F.git 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. --- 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