From: Lukas Krickl Date: Fri, 15 Aug 2025 04:53:24 +0000 (+0200) Subject: battle: Added notes about unit state switching X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=c353194fb963f3ec570e54e9f913b53c2cdd88f0;p=gbrg%2F.git battle: Added notes about unit state switching --- diff --git a/src/battle.s b/src/battle.s index bfa1618..baf55fe 100644 --- a/src/battle.s +++ b/src/battle.s @@ -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