call cells_draw_all
- ; TOOD: remove demo unit load
- call map_load_demo_actors
-
ret
; loads a tile map into cells
; sets up some actors for debug purposes
map_load_demo_actors:
+ ; load a single demo actor into p0 units
+ ld de, unit_demo_1
+ ld hl, p0_units
+ ld bc, act_size
+ call memcpy
ret
#include "default_map.s"
push hl
pop de ; need hl in de for parameter
call st_update
-
+
+ pop hl
@skip:
; next actor
ld de, act_size
ret
+unit_demo_1_update:
+ ldnull bc
+ ret
unit_demo_1:
- st_def 0xFF, st_null_fn, st_null
- act_def ACT_T_NULL, 1, 1, 1, 1, 1, 0
+ st_def 0x00, unit_demo_1_update, unit_demo_1
+ act_def ACT_T_DEMO_1, 1, 1, 1, 1, 1, 0