text: added status text stub
authorLukas Krickl <lukas@krickl.dev>
Sun, 1 Jun 2025 09:51:16 +0000 (11:51 +0200)
committerLukas Krickl <lukas@krickl.dev>
Sun, 1 Jun 2025 09:51:16 +0000 (11:51 +0200)
src/defs.s
src/main.s
src/text.s [new file with mode: 0644]
src/wram.s

index 5e0492bc2e14286be79cf29ec81f52524bca6064..25b9a250eb5d7d20e39ddd1c57e0c7c55b4877c1 100644 (file)
 .de map_flags_3, 1
 .de map_flags_4, 1
 .de map_bg_ptr, 2
+
+; special text commands
+
+; consumes the command 
+; and interprets the next 
+; byte as a number
+#define TEXT_NUMBER 0x80
index 6ad5a4a284f38b71104c39325f90c8d3cc457a18..1b90de8de0e8f7ab0ca27e705baf1b07f47e3dc4 100644 (file)
@@ -67,6 +67,7 @@ main:
 #include "tiles.inc"
 #include "unit.s"
 #include "effect.s"
+#include "text.s"
 
 ; fill bank
 .fill 0, 0x7FFF - $
diff --git a/src/text.s b/src/text.s
new file mode 100644 (file)
index 0000000..b3f4cf7
--- /dev/null
@@ -0,0 +1,4 @@
+
+  ; draws the status text to the UI
+text_status_draw:
+  ret
index 5078049fdd7ebd29dc057ef72e4f02c963268d82..90e40cca44175baad1ffb4e000ceff5cc82cd66e 100644 (file)
@@ -16,6 +16,9 @@ prev_inputs: .adv 1
 
 game_mode: .adv st_size
 
+  ; status text buffer
+status_text: .adv 32
+
 ; current best init found in units_next
 unit_next_best_init: .adv 1
 unit_next_best_act_ptr: .adv 2