.de act_moves, stat_size ; moves for each turn
.de act_init, 1 ; initiative value
+.de act_pos_y, 1 ; y/x tile position
+.de act_pos_x, 1
; custom parameter
.de act_p0, 1
.de act_size, 0
; $4 shiled
; $5 moves
; $6 initiative
- ; $7 custom p0 value
+ ; $7 y pos
+ ; $8 x pos
+ ; $9 custom p0 value
#macro act_def
.db $1 ; type
.db $2, $2 ; hp hp max
.db $4, $4 ; shiled shield max
.db $5, $5 ; moves moves max
.db $6 ; initiative
- .db $7 ; p0
+ .db $7 ; y pos
+ .db $8 ; x pos
+ .db $9 ; p0
#endmacro
; loads NULL into a 16 bit register
unit_demo_1:
st_def 0x00, unit_demo_1_update, unit_demo_1
- act_def ACT_T_DEMO_1, 1, 1, 1, 1, 1, 0
+ act_def ACT_T_DEMO_1, 1, 1, 1, 1, 1, 2, 2, 0