projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
785f251
)
player: moved when scroll to center is called
author
Lukas Krickl
<lukas@krickl.dev>
Tue, 8 Jul 2025 03:53:46 +0000
(
05:53
+0200)
committer
Lukas Krickl
<lukas@krickl.dev>
Tue, 8 Jul 2025 03:53:46 +0000
(
05:53
+0200)
This makes the camera behave a bit nicer.
It still kinda looks a bit off when moving a lot.
src/player.s
patch
|
blob
|
history
diff --git
a/src/player.s
b/src/player.s
index e93d82134904343adaf67c3dd8730cd008659ed7..f695c6bfda78cc92cc80ececf7fab1ad2801b69d 100644
(file)
--- a/
src/player.s
+++ b/
src/player.s
@@
-31,12
+31,13
@@
unit_player_update:
pop de
push de
- call unit_
handle_inputs
+ call unit_
scroll_center
pop de
-
+
push de
- call unit_
scroll_center
+ call unit_
handle_inputs
pop de
+
ret