video: position adjustment now only affects enemies and the player
authorLukas Krickl <lukas@krickl.dev>
Sun, 5 Oct 2025 14:01:13 +0000 (16:01 +0200)
committerLukas Krickl <lukas@krickl.dev>
Sun, 5 Oct 2025 14:01:13 +0000 (16:01 +0200)
src/video.s

index 7e5646bd325e5fe7cb309a906a518bbb4507767e..3975e712476d4e01be4f0eec02d7b005cfa940ee 100644 (file)
@@ -75,8 +75,10 @@ video_map_adjust_scroll:
        ; adjusts all actors and rectangles positions
        ; when a scroll occurs
 scroll_up_adjust:
-       ld b, ACTS_MAX
-       ld hl, actors
+       ; only adjust enemies
+       ; do not adjust projectiles or player here
+       ld b, ACTS_ENEMY
+       ld hl, actors_enemy
 
 @act_loop:
        push hl