projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81745e8
)
battle: Added notes about unit state switching
author
Lukas Krickl
<lukas@krickl.dev>
Fri, 15 Aug 2025 04:53:24 +0000
(06:53 +0200)
committer
Lukas Krickl
<lukas@krickl.dev>
Fri, 15 Aug 2025 04:53:24 +0000
(06:53 +0200)
src/battle.s
patch
|
blob
|
history
diff --git
a/src/battle.s
b/src/battle.s
index bfa1618fdcec9e6be93d7dd94f4b7347687391a1..baf55fe626d529455a01aa81fde7f86f0ab7044f 100644
(file)
--- 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