player: moved when scroll to center is called
authorLukas Krickl <lukas@krickl.dev>
Tue, 8 Jul 2025 03:53:46 +0000 (05:53 +0200)
committerLukas 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

index e93d82134904343adaf67c3dd8730cd008659ed7..f695c6bfda78cc92cc80ececf7fab1ad2801b69d 100644 (file)
@@ -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