#define NULL 0
#define ACTS_PLAYER_PROJECTILES 6
-#define ACTS_ENEMY 6
+#define ACTS_ENEMY 4
#define ACTS_ENEMY_PROJECTILES 6
#define ACTS_MAX (ACTS_PLAYER_PROJECTILES + ACTS_ENEMY + ACTS_ENEMY_PROJECTILES)
.de MOT_ENABLE_SCROLL, 1
.de MOT_RECT, 1
.de MOT_ACTOR_SPAWNER, 1
+.de MOT_SET_MAP_ROUTINE, 1
; map object struct
.se 0
; inputs:
; de: map ptr
map_load:
+ ; clear map routine
+ ld a, map_r_nop LO
+ ld [map_routine], a
+ ld a, map_r_nop HI
+ ld [map_routine+1], a
+
call disableinterrupts
call next_vblank_wait
call lcd_off
call next_vblank_wait
call map_advance_row
ret
+
+ ; nop map rotuine
+map_r_nop:
+ ret
+
+ ; checks if all enemies are defeated
+ ; and re-enables scroll
+map_r_enable_scroll_all_enemies_defeated:
+ ; TODO
+ ret
l1_map:
mapdef 0, pat_empty, l1_objs, bank8000, bank8800, bank8C00, bank9000
modef MOT_SET_PAT, 0, 0x1E, pat_empty
modef MOT_DISABLE_SCROLL, 0, 0x20, 0
+ modef MOT_SET_MAP_ROUTINE, 0, 0x20, map_r_enable_scroll_all_enemies_defeated
modef MOT_NOP, 0, 0xFF, 0
+
+