units: Added stub for unit update
authorLukas Krickl <lukas@krickl.dev>
Sun, 4 May 2025 13:35:45 +0000 (15:35 +0200)
committerLukas Krickl <lukas@krickl.dev>
Sun, 4 May 2025 13:35:45 +0000 (15:35 +0200)
src/main.s
src/unit.s [new file with mode: 0644]
src/update.s

index c7f5ce63c925683017eb8013d1e0668a91395708..6e060c653a0d78a58d5526109e7ef3d9900ca940 100644 (file)
@@ -65,6 +65,7 @@ main:
 #include "map.s"
 #include "state.s"
 #include "tiles.inc"
+#include "unit.s"
 
 ; fill bank
 .fill 0, 0x7FFF - $
diff --git a/src/unit.s b/src/unit.s
new file mode 100644 (file)
index 0000000..9d6886e
--- /dev/null
@@ -0,0 +1,8 @@
+  ; updates a unit table
+  ; runs state for each unit
+  ; inputs:
+  ;   hl: unit table (p0/p1)
+units_update:
+  ret
+
+
index e4542e2805e5d108f2bd51eca8396aeb1eb9fa0f..e078d9a92685ad2fcb433954c0a3879b89ce86d8 100644 (file)
@@ -8,7 +8,11 @@ update_game:
 
   ld de, actor_player 
   call st_update
-
+  
+  ld hl, p0_units
+  call units_update
+  ld hl, p1_units
+  call units_update
 
   ldnull bc
   ret