battle: Added notes about unit state switching
authorLukas Krickl <lukas@krickl.dev>
Fri, 15 Aug 2025 04:53:24 +0000 (06:53 +0200)
committerLukas Krickl <lukas@krickl.dev>
Fri, 15 Aug 2025 04:53:24 +0000 (06:53 +0200)
src/battle.s

index bfa1618fdcec9e6be93d7dd94f4b7347687391a1..baf55fe626d529455a01aa81fde7f86f0ab7044f 100644 (file)
@@ -6,6 +6,8 @@
        ; moved into combat.
        ; the current map's state is preserved.
        ; transitions game state to battle
+       ; switch all units to their attack state
+       ; and switch draw routines to battle routines
        ; inputs:
        ;               de: player actor
 battle_enter:
@@ -18,6 +20,8 @@ battle_enter:
        ; and reloads the map
        ; without re-generating it.
        ; the map simply needs to be drawn again
+       ; switch all units back to their active states
+       ; and restore draw routines
 battle_exit:
        ret