mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
Add debug maps for testing
This commit is contained in:
parent
7d9b5bb279
commit
63912e8bef
@ -64,6 +64,10 @@
|
|||||||
const ENGINE_FLYPOINT_LEVEL_1
|
const ENGINE_FLYPOINT_LEVEL_1
|
||||||
if DEF(_DEBUG)
|
if DEF(_DEBUG)
|
||||||
const ENGINE_FLYPOINT_DEBUGLEVEL_1
|
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
|
endc
|
||||||
const ENGINE_FLYPOINT_UNUSED
|
const ENGINE_FLYPOINT_UNUSED
|
||||||
; wLuckyNumberShowFlag
|
; wLuckyNumberShowFlag
|
||||||
|
@ -48,6 +48,22 @@ if DEF(_DEBUG)
|
|||||||
newgroup DEBUGLEVEL_1
|
newgroup DEBUGLEVEL_1
|
||||||
map_const DEBUGLEVEL_1_MAP_1, 5, 4 ; 1
|
map_const DEBUGLEVEL_1_MAP_1, 5, 4 ; 1
|
||||||
endgroup
|
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
|
endc
|
||||||
|
|
||||||
DEF NUM_MAP_GROUPS EQU const_value
|
DEF NUM_MAP_GROUPS EQU const_value
|
||||||
|
@ -81,6 +81,10 @@ DEF NUM_FISHGROUPS EQU const_value - 1
|
|||||||
; const SPAWN_LEVEL_2
|
; const SPAWN_LEVEL_2
|
||||||
if DEF(_DEBUG)
|
if DEF(_DEBUG)
|
||||||
const SPAWN_DEBUGLEVEL_1
|
const SPAWN_DEBUGLEVEL_1
|
||||||
|
const SPAWN_DEBUGLEVEL_2
|
||||||
|
const SPAWN_DEBUGLEVEL_3
|
||||||
|
const SPAWN_DEBUGLEVEL_4
|
||||||
|
const SPAWN_DEBUGLEVEL_5
|
||||||
endc
|
endc
|
||||||
DEF NUM_SPAWNS EQU const_value
|
DEF NUM_SPAWNS EQU const_value
|
||||||
DEF SPAWN_N_A EQU -1
|
DEF SPAWN_N_A EQU -1
|
||||||
|
@ -74,6 +74,10 @@ EngineFlags:
|
|||||||
engine_flag wVisitedSpawns, SPAWN_LEVEL_1
|
engine_flag wVisitedSpawns, SPAWN_LEVEL_1
|
||||||
if DEF(_DEBUG)
|
if DEF(_DEBUG)
|
||||||
engine_flag wVisitedSpawns, SPAWN_DEBUGLEVEL_1
|
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
|
endc
|
||||||
engine_flag wVisitedSpawns, NUM_SPAWNS ; unused
|
engine_flag wVisitedSpawns, NUM_SPAWNS ; unused
|
||||||
|
|
||||||
|
@ -22,10 +22,10 @@ LevelSelectionMenu_Landmarks:
|
|||||||
.landmark2
|
.landmark2
|
||||||
if DEF(_DEBUG)
|
if DEF(_DEBUG)
|
||||||
level_selection_menu_landmark 0, 16, 11, .DebugLevel1LandmarkName, SPAWN_DEBUGLEVEL_1 ; LANDMARK_DEBUGLEVEL_1
|
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, 11, 9, .DebugLevel2LandmarkName, SPAWN_DEBUGLEVEL_2 ; LANDMARK_DEBUGLEVEL_2
|
||||||
level_selection_menu_landmark 0, 9, 11, .DebugLevel3LandmarkName, SPAWN_DEBUGLEVEL_1 ; LANDMARK_DEBUGLEVEL_3
|
level_selection_menu_landmark 0, 9, 11, .DebugLevel3LandmarkName, SPAWN_DEBUGLEVEL_3 ; LANDMARK_DEBUGLEVEL_3
|
||||||
level_selection_menu_landmark 1, 16, 11, .DebugLevel4LandmarkName, SPAWN_DEBUGLEVEL_1 ; LANDMARK_DEBUGLEVEL_4
|
level_selection_menu_landmark 1, 16, 11, .DebugLevel4LandmarkName, SPAWN_DEBUGLEVEL_4 ; LANDMARK_DEBUGLEVEL_4
|
||||||
level_selection_menu_landmark 2, 9, 5, .DebugLevel5LandmarkName, SPAWN_DEBUGLEVEL_1 ; LANDMARK_DEBUGLEVEL_5
|
level_selection_menu_landmark 2, 9, 5, .DebugLevel5LandmarkName, SPAWN_DEBUGLEVEL_5 ; LANDMARK_DEBUGLEVEL_5
|
||||||
endc
|
endc
|
||||||
|
|
||||||
.Level1LandmarkName: db "LEVEL 1@"
|
.Level1LandmarkName: db "LEVEL 1@"
|
||||||
|
@ -108,4 +108,8 @@ if DEF(_DEBUG)
|
|||||||
map_attributes DebugLevel1_Map1, DEBUGLEVEL_1_MAP_1, $00, SOUTH | NORTH
|
map_attributes DebugLevel1_Map1, DEBUGLEVEL_1_MAP_1, $00, SOUTH | NORTH
|
||||||
connection south, DebugLevel1_Map1, DEBUGLEVEL_1_MAP_1, 0
|
connection south, DebugLevel1_Map1, DEBUGLEVEL_1_MAP_1, 0
|
||||||
connection north, 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
|
endc
|
||||||
|
@ -6,4 +6,16 @@ INCBIN "maps/Level1_Map1.blk"
|
|||||||
if DEF(_DEBUG)
|
if DEF(_DEBUG)
|
||||||
DebugLevel1_Map1_Blocks:
|
DebugLevel1_Map1_Blocks:
|
||||||
INCBIN "maps/DebugLevel1_Map1.blk"
|
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
|
endc
|
||||||
|
@ -21,6 +21,10 @@ MapGroupPointers::
|
|||||||
; dw MapGroup_Level2 ; 2
|
; dw MapGroup_Level2 ; 2
|
||||||
if DEF(_DEBUG)
|
if DEF(_DEBUG)
|
||||||
dw MapGroup_DebugLevel1 ; 1
|
dw MapGroup_DebugLevel1 ; 1
|
||||||
|
dw MapGroup_DebugLevel2 ; 2
|
||||||
|
dw MapGroup_DebugLevel3 ; 3
|
||||||
|
dw MapGroup_DebugLevel4 ; 4
|
||||||
|
dw MapGroup_DebugLevel5 ; 5
|
||||||
endc
|
endc
|
||||||
assert_table_length NUM_MAP_GROUPS
|
assert_table_length NUM_MAP_GROUPS
|
||||||
|
|
||||||
@ -40,4 +44,24 @@ MapGroup_DebugLevel1:
|
|||||||
table_width MAP_LENGTH, 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
|
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
|
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
|
endc
|
@ -8,6 +8,10 @@ OutdoorSprites:
|
|||||||
; dw Level2GroupSprites
|
; dw Level2GroupSprites
|
||||||
if DEF(_DEBUG)
|
if DEF(_DEBUG)
|
||||||
dw DebugLevel1GroupSprites
|
dw DebugLevel1GroupSprites
|
||||||
|
dw DebugLevel2GroupSprites
|
||||||
|
dw DebugLevel3GroupSprites
|
||||||
|
dw DebugLevel4GroupSprites
|
||||||
|
dw DebugLevel5GroupSprites
|
||||||
endc
|
endc
|
||||||
assert_table_length NUM_MAP_GROUPS
|
assert_table_length NUM_MAP_GROUPS
|
||||||
|
|
||||||
@ -33,6 +37,10 @@ Level1GroupSprites:
|
|||||||
|
|
||||||
if DEF(_DEBUG)
|
if DEF(_DEBUG)
|
||||||
DebugLevel1GroupSprites:
|
DebugLevel1GroupSprites:
|
||||||
|
DebugLevel2GroupSprites:
|
||||||
|
DebugLevel3GroupSprites:
|
||||||
|
DebugLevel4GroupSprites:
|
||||||
|
DebugLevel5GroupSprites:
|
||||||
db SPRITE_YOUNGSTER
|
db SPRITE_YOUNGSTER
|
||||||
db SPRITE_BUG_CATCHER
|
db SPRITE_BUG_CATCHER
|
||||||
db SPRITE_FISHER
|
db SPRITE_FISHER
|
||||||
|
@ -15,6 +15,10 @@ MapGroupRoofs:
|
|||||||
db ROOF_OLIVINE ; 1 (Level1)
|
db ROOF_OLIVINE ; 1 (Level1)
|
||||||
if DEF(_DEBUG)
|
if DEF(_DEBUG)
|
||||||
db ROOF_OLIVINE ; 1 (DebugLevel1)
|
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
|
endc
|
||||||
assert_table_length NUM_MAP_GROUPS + 1
|
assert_table_length NUM_MAP_GROUPS + 1
|
||||||
|
|
||||||
|
@ -4,4 +4,8 @@ INCLUDE "maps/Level1_Map1.asm"
|
|||||||
|
|
||||||
if DEF(_DEBUG)
|
if DEF(_DEBUG)
|
||||||
INCLUDE "maps/DebugLevel1_Map1.asm"
|
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
|
endc
|
||||||
|
@ -12,6 +12,10 @@ SpawnPoints:
|
|||||||
; spawn LEVEL_2_MAP_1, 5, 3 ; SPAWN_LEVEL_2
|
; spawn LEVEL_2_MAP_1, 5, 3 ; SPAWN_LEVEL_2
|
||||||
if DEF(_DEBUG)
|
if DEF(_DEBUG)
|
||||||
spawn DEBUGLEVEL_1_MAP_1, 3, 3, ; SPAWN_DEBUGLEVEL_1
|
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
|
endc
|
||||||
spawn N_A, -1, -1
|
spawn N_A, -1, -1
|
||||||
|
|
||||||
|
@ -16,6 +16,30 @@ if DEF(_DEBUG)
|
|||||||
RGB 14,17,31, 07,11,15 ; day
|
RGB 14,17,31, 07,11,15 ; day
|
||||||
RGB 09,09,17, 05,07,13 ; nite
|
RGB 09,09,17, 05,07,13 ; nite
|
||||||
RGB 12,13,23, 06,08,11 ; eve
|
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
|
endc
|
||||||
|
|
||||||
; group 2 (Mahogany)
|
; group 2 (Mahogany)
|
||||||
|
17
maps/DebugLevel2_Map1.asm
Executable file
17
maps/DebugLevel2_Map1.asm
Executable 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
1
maps/DebugLevel2_Map1.blk
Executable file
@ -0,0 +1 @@
|
|||||||
|
|
17
maps/DebugLevel3_Map1.asm
Executable file
17
maps/DebugLevel3_Map1.asm
Executable 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
1
maps/DebugLevel3_Map1.blk
Executable file
@ -0,0 +1 @@
|
|||||||
|
|
17
maps/DebugLevel4_Map1.asm
Executable file
17
maps/DebugLevel4_Map1.asm
Executable 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
1
maps/DebugLevel4_Map1.blk
Executable file
@ -0,0 +1 @@
|
|||||||
|
|
17
maps/DebugLevel5_Map1.asm
Executable file
17
maps/DebugLevel5_Map1.asm
Executable 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
1
maps/DebugLevel5_Map1.blk
Executable file
@ -0,0 +1 @@
|
|||||||
|
|
Loading…
Reference in New Issue
Block a user