projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f039525
)
scroll: scroll updates are now correctly performed right after moving
author
Lukas Krickl
<lukas@krickl.dev>
Fri, 21 Mar 2025 17:19:19 +0000
(18:19 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Fri, 21 Mar 2025 17:19:19 +0000
(18:19 +0100)
This prevents the cursor from being displayed incorrectly for a single
frame causing a flash.
src/player.s
patch
|
blob
|
history
src/update.s
patch
|
blob
|
history
diff --git
a/src/player.s
b/src/player.s
index 1dd2db90fd01e2276e81687a95c49950c6dfc0a8..bdb5f2a43ff66df29e6a6150a6705a485cd7c1b2 100644
(file)
--- 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 fc5831d522c0be8881ed0ac756d44131bb41913c..06751b8b7fe0676fea49aa8e6b7090b19c4e1ee3 100644
(file)
--- a/
src/update.s
+++ b/
src/update.s
@@
-13,8
+13,6
@@
update_game:
call player_update
call sim_update
-
- call scroll_update
ret