Add debug maps for testing

This commit is contained in:
xCrystal 2023-10-02 16:11:52 +02:00
parent 7d9b5bb279
commit 63912e8bef
21 changed files with 188 additions and 4 deletions

View File

@ -64,6 +64,10 @@
const ENGINE_FLYPOINT_LEVEL_1
if DEF(_DEBUG)
const ENGINE_FLYPOINT_DEBUGLEVEL_1
const ENGINE_FLYPOINT_DEBUGLEVEL_2
const ENGINE_FLYPOINT_DEBUGLEVEL_3
const ENGINE_FLYPOINT_DEBUGLEVEL_4
const ENGINE_FLYPOINT_DEBUGLEVEL_5
endc
const ENGINE_FLYPOINT_UNUSED
; wLuckyNumberShowFlag

View File

@ -48,6 +48,22 @@ if DEF(_DEBUG)
newgroup DEBUGLEVEL_1
map_const DEBUGLEVEL_1_MAP_1, 5, 4 ; 1
endgroup
newgroup DEBUGLEVEL_2
map_const DEBUGLEVEL_2_MAP_1, 5, 4 ; 1
endgroup
newgroup DEBUGLEVEL_3
map_const DEBUGLEVEL_3_MAP_1, 5, 4 ; 1
endgroup
newgroup DEBUGLEVEL_4
map_const DEBUGLEVEL_4_MAP_1, 5, 4 ; 1
endgroup
newgroup DEBUGLEVEL_5
map_const DEBUGLEVEL_5_MAP_1, 5, 4 ; 1
endgroup
endc
DEF NUM_MAP_GROUPS EQU const_value

View File

@ -81,6 +81,10 @@ DEF NUM_FISHGROUPS EQU const_value - 1
; const SPAWN_LEVEL_2
if DEF(_DEBUG)
const SPAWN_DEBUGLEVEL_1
const SPAWN_DEBUGLEVEL_2
const SPAWN_DEBUGLEVEL_3
const SPAWN_DEBUGLEVEL_4
const SPAWN_DEBUGLEVEL_5
endc
DEF NUM_SPAWNS EQU const_value
DEF SPAWN_N_A EQU -1

View File

@ -74,6 +74,10 @@ EngineFlags:
engine_flag wVisitedSpawns, SPAWN_LEVEL_1
if DEF(_DEBUG)
engine_flag wVisitedSpawns, SPAWN_DEBUGLEVEL_1
engine_flag wVisitedSpawns, SPAWN_DEBUGLEVEL_2
engine_flag wVisitedSpawns, SPAWN_DEBUGLEVEL_3
engine_flag wVisitedSpawns, SPAWN_DEBUGLEVEL_4
engine_flag wVisitedSpawns, SPAWN_DEBUGLEVEL_5
endc
engine_flag wVisitedSpawns, NUM_SPAWNS ; unused

View File

@ -22,10 +22,10 @@ LevelSelectionMenu_Landmarks:
.landmark2
if DEF(_DEBUG)
level_selection_menu_landmark 0, 16, 11, .DebugLevel1LandmarkName, SPAWN_DEBUGLEVEL_1 ; LANDMARK_DEBUGLEVEL_1
level_selection_menu_landmark 0, 11, 9, .DebugLevel2LandmarkName, SPAWN_DEBUGLEVEL_1 ; LANDMARK_DEBUGLEVEL_2
level_selection_menu_landmark 0, 9, 11, .DebugLevel3LandmarkName, SPAWN_DEBUGLEVEL_1 ; LANDMARK_DEBUGLEVEL_3
level_selection_menu_landmark 1, 16, 11, .DebugLevel4LandmarkName, SPAWN_DEBUGLEVEL_1 ; LANDMARK_DEBUGLEVEL_4
level_selection_menu_landmark 2, 9, 5, .DebugLevel5LandmarkName, SPAWN_DEBUGLEVEL_1 ; LANDMARK_DEBUGLEVEL_5
level_selection_menu_landmark 0, 11, 9, .DebugLevel2LandmarkName, SPAWN_DEBUGLEVEL_2 ; LANDMARK_DEBUGLEVEL_2
level_selection_menu_landmark 0, 9, 11, .DebugLevel3LandmarkName, SPAWN_DEBUGLEVEL_3 ; LANDMARK_DEBUGLEVEL_3
level_selection_menu_landmark 1, 16, 11, .DebugLevel4LandmarkName, SPAWN_DEBUGLEVEL_4 ; LANDMARK_DEBUGLEVEL_4
level_selection_menu_landmark 2, 9, 5, .DebugLevel5LandmarkName, SPAWN_DEBUGLEVEL_5 ; LANDMARK_DEBUGLEVEL_5
endc
.Level1LandmarkName: db "LEVEL 1@"

View File

@ -108,4 +108,8 @@ if DEF(_DEBUG)
map_attributes DebugLevel1_Map1, DEBUGLEVEL_1_MAP_1, $00, SOUTH | NORTH
connection south, DebugLevel1_Map1, DEBUGLEVEL_1_MAP_1, 0
connection north, DebugLevel1_Map1, DEBUGLEVEL_1_MAP_1, 0
map_attributes DebugLevel2_Map1, DEBUGLEVEL_2_MAP_1, $00, 0
map_attributes DebugLevel3_Map1, DEBUGLEVEL_3_MAP_1, $00, 0
map_attributes DebugLevel4_Map1, DEBUGLEVEL_4_MAP_1, $00, 0
map_attributes DebugLevel5_Map1, DEBUGLEVEL_5_MAP_1, $00, 0
endc

View File

@ -6,4 +6,16 @@ INCBIN "maps/Level1_Map1.blk"
if DEF(_DEBUG)
DebugLevel1_Map1_Blocks:
INCBIN "maps/DebugLevel1_Map1.blk"
DebugLevel2_Map1_Blocks:
INCBIN "maps/DebugLevel2_Map1.blk"
DebugLevel3_Map1_Blocks:
INCBIN "maps/DebugLevel3_Map1.blk"
DebugLevel4_Map1_Blocks:
INCBIN "maps/DebugLevel4_Map1.blk"
DebugLevel5_Map1_Blocks:
INCBIN "maps/DebugLevel5_Map1.blk"
endc

View File

@ -21,6 +21,10 @@ MapGroupPointers::
; dw MapGroup_Level2 ; 2
if DEF(_DEBUG)
dw MapGroup_DebugLevel1 ; 1
dw MapGroup_DebugLevel2 ; 2
dw MapGroup_DebugLevel3 ; 3
dw MapGroup_DebugLevel4 ; 4
dw MapGroup_DebugLevel5 ; 5
endc
assert_table_length NUM_MAP_GROUPS
@ -40,4 +44,24 @@ MapGroup_DebugLevel1:
table_width MAP_LENGTH, MapGroup_DebugLevel1
map DebugLevel1_Map1, TILESET_PLAYERS_ROOM, INDOOR_BUILDING, LANDMARK_DEBUGLEVEL_1, MUSIC_NEW_BARK_TOWN, FALSE, PALETTE_DAY, FISHGROUP_SHORE
assert_table_length NUM_DEBUGLEVEL_1_MAPS
MapGroup_DebugLevel2:
table_width MAP_LENGTH, MapGroup_DebugLevel2
map DebugLevel2_Map1, TILESET_CAVE, INDOOR_CAVE, LANDMARK_DEBUGLEVEL_2, MUSIC_NEW_BARK_TOWN, FALSE, PALETTE_NITE | IN_DARKNESS, FISHGROUP_SHORE
assert_table_length NUM_DEBUGLEVEL_2_MAPS
MapGroup_DebugLevel3:
table_width MAP_LENGTH, MapGroup_DebugLevel3
map DebugLevel3_Map1, TILESET_FOREST, INDOOR_FOREST, LANDMARK_DEBUGLEVEL_3, MUSIC_NEW_BARK_TOWN, FALSE, PALETTE_AUTO, FISHGROUP_SHORE
assert_table_length NUM_DEBUGLEVEL_3_MAPS
MapGroup_DebugLevel4:
table_width MAP_LENGTH, MapGroup_DebugLevel4
map DebugLevel4_Map1, TILESET_JOHTO, OUTDOOR_GRASSY, LANDMARK_DEBUGLEVEL_4, MUSIC_NEW_BARK_TOWN, FALSE, PALETTE_AUTO, FISHGROUP_SHORE
assert_table_length NUM_DEBUGLEVEL_4_MAPS
MapGroup_DebugLevel5:
table_width MAP_LENGTH, MapGroup_DebugLevel5
map DebugLevel5_Map1, TILESET_JOHTO, OUTDOOR_GRASSY, LANDMARK_DEBUGLEVEL_5, MUSIC_NEW_BARK_TOWN, FALSE, PALETTE_AUTO, FISHGROUP_SHORE
assert_table_length NUM_DEBUGLEVEL_5_MAPS
endc

View File

@ -8,6 +8,10 @@ OutdoorSprites:
; dw Level2GroupSprites
if DEF(_DEBUG)
dw DebugLevel1GroupSprites
dw DebugLevel2GroupSprites
dw DebugLevel3GroupSprites
dw DebugLevel4GroupSprites
dw DebugLevel5GroupSprites
endc
assert_table_length NUM_MAP_GROUPS
@ -33,6 +37,10 @@ Level1GroupSprites:
if DEF(_DEBUG)
DebugLevel1GroupSprites:
DebugLevel2GroupSprites:
DebugLevel3GroupSprites:
DebugLevel4GroupSprites:
DebugLevel5GroupSprites:
db SPRITE_YOUNGSTER
db SPRITE_BUG_CATCHER
db SPRITE_FISHER

View File

@ -15,6 +15,10 @@ MapGroupRoofs:
db ROOF_OLIVINE ; 1 (Level1)
if DEF(_DEBUG)
db ROOF_OLIVINE ; 1 (DebugLevel1)
db ROOF_OLIVINE ; 2 (DebugLevel2)
db ROOF_OLIVINE ; 3 (DebugLevel3)
db ROOF_OLIVINE ; 4 (DebugLevel4)
db ROOF_OLIVINE ; 5 (DebugLevel5)
endc
assert_table_length NUM_MAP_GROUPS + 1

View File

@ -4,4 +4,8 @@ INCLUDE "maps/Level1_Map1.asm"
if DEF(_DEBUG)
INCLUDE "maps/DebugLevel1_Map1.asm"
INCLUDE "maps/DebugLevel2_Map1.asm"
INCLUDE "maps/DebugLevel3_Map1.asm"
INCLUDE "maps/DebugLevel4_Map1.asm"
INCLUDE "maps/DebugLevel5_Map1.asm"
endc

View File

@ -12,6 +12,10 @@ SpawnPoints:
; spawn LEVEL_2_MAP_1, 5, 3 ; SPAWN_LEVEL_2
if DEF(_DEBUG)
spawn DEBUGLEVEL_1_MAP_1, 3, 3, ; SPAWN_DEBUGLEVEL_1
spawn DEBUGLEVEL_2_MAP_1, 3, 3, ; SPAWN_DEBUGLEVEL_2
spawn DEBUGLEVEL_3_MAP_1, 3, 3, ; SPAWN_DEBUGLEVEL_3
spawn DEBUGLEVEL_4_MAP_1, 3, 3, ; SPAWN_DEBUGLEVEL_4
spawn DEBUGLEVEL_5_MAP_1, 3, 3, ; SPAWN_DEBUGLEVEL_5
endc
spawn N_A, -1, -1

View File

@ -16,6 +16,30 @@ if DEF(_DEBUG)
RGB 14,17,31, 07,11,15 ; day
RGB 09,09,17, 05,07,13 ; nite
RGB 12,13,23, 06,08,11 ; eve
; debug group 2 (DebugLevel2)
RGB 14,17,31, 07,11,15 ; morn
RGB 14,17,31, 07,11,15 ; day
RGB 09,09,17, 05,07,13 ; nite
RGB 12,13,23, 06,08,11 ; eve
; debug group 3 (DebugLevel3)
RGB 14,17,31, 07,11,15 ; morn
RGB 14,17,31, 07,11,15 ; day
RGB 09,09,17, 05,07,13 ; nite
RGB 12,13,23, 06,08,11 ; eve
; debug group 4 (DebugLevel4)
RGB 14,17,31, 07,11,15 ; morn
RGB 14,17,31, 07,11,15 ; day
RGB 09,09,17, 05,07,13 ; nite
RGB 12,13,23, 06,08,11 ; eve
; debug group 5 (DebugLevel5)
RGB 14,17,31, 07,11,15 ; morn
RGB 14,17,31, 07,11,15 ; day
RGB 09,09,17, 05,07,13 ; nite
RGB 12,13,23, 06,08,11 ; eve
endc
; group 2 (Mahogany)

17
maps/DebugLevel2_Map1.asm Executable file
View File

@ -0,0 +1,17 @@
object_const_def
DebugLevel2_Map1_MapScripts:
def_scene_scripts
def_callbacks
DebugLevel2_Map1_MapEvents:
db 0, 0 ; filler
def_warp_events
def_coord_events
def_bg_events
def_object_events

1
maps/DebugLevel2_Map1.blk Executable file
View File

@ -0,0 +1 @@


17
maps/DebugLevel3_Map1.asm Executable file
View File

@ -0,0 +1,17 @@
object_const_def
DebugLevel3_Map1_MapScripts:
def_scene_scripts
def_callbacks
DebugLevel3_Map1_MapEvents:
db 0, 0 ; filler
def_warp_events
def_coord_events
def_bg_events
def_object_events

1
maps/DebugLevel3_Map1.blk Executable file
View File

@ -0,0 +1 @@


17
maps/DebugLevel4_Map1.asm Executable file
View File

@ -0,0 +1,17 @@
object_const_def
DebugLevel4_Map1_MapScripts:
def_scene_scripts
def_callbacks
DebugLevel4_Map1_MapEvents:
db 0, 0 ; filler
def_warp_events
def_coord_events
def_bg_events
def_object_events

1
maps/DebugLevel4_Map1.blk Executable file
View File

@ -0,0 +1 @@


17
maps/DebugLevel5_Map1.asm Executable file
View File

@ -0,0 +1,17 @@
object_const_def
DebugLevel5_Map1_MapScripts:
def_scene_scripts
def_callbacks
DebugLevel5_Map1_MapEvents:
db 0, 0 ; filler
def_warp_events
def_coord_events
def_bg_events
def_object_events

1
maps/DebugLevel5_Map1.blk Executable file
View File

@ -0,0 +1 @@