ld hl, act_oam_flags
add hl, de
ld a, [hl]
- or a, OAM_DMG_PAL
+ or a, OAM_FXFLIP
ld [hl], a
pop de
; cpu controllerd unit update
unit_demo_1_cpu_update:
- push de
- ld hl, act_oam_flags
- add hl, de
- ld a, [hl]
- or a, OAM_DMG_PAL
- ld [hl], a
- pop de
-
push de
call unit_handle_cpu_inputs
pop de
- push de
- call unit_scroll_center
- pop de
ret
unit_handle_cpu_inputs:
; inputs
; de: actor
unit_idle:
- ; turn on OAM Palette 0
- ld hl, act_oam_flags
- add hl, de
- ld a, [hl]
- and a, ~OAM_DMG_PAL & 0xFF
- ld [hl], a
-
ldnull bc
ret
act_inventory_empty
act_equipment_empty
act_effects_empty
- act_st_def NULL, NULL, st_unit_demo_1_update, st_unit_idle
+ act_st_def NULL, NULL, st_unit_demo_1_cpu_update, st_unit_idle
act_def_draw unit_draw, 0x84, 0
act_rt_def