Organize debug-only structures for test maps and levels (#16)

This commit is contained in:
xCrystal
2023-09-03 00:22:23 +02:00
parent eb728d5151
commit 674e838460
19 changed files with 276 additions and 91 deletions

113
maps/DebugLevel1_Map1.asm Executable file
View File

@@ -0,0 +1,113 @@
object_const_def
const DEBUGLEVEL1_MAP1_CONSOLE
const DEBUGLEVEL1_MAP1_DOLL_1
const DEBUGLEVEL1_MAP1_DOLL_2
const DEBUGLEVEL1_MAP1_BIG_DOLL
const DEBUGLEVEL1_MAP1_TRAINER
DebugLevel1_Map1_MapScripts:
def_scene_scripts
def_callbacks
DebugLevel1_Map1_Doll1Script::
opentext
callasm .BoardMenu
waitbutton
pokemart MARTTYPE_STANDARD, MART_AZALEA
closetext
end
.BoardMenu:
farcall BoardMenu
ret
; describedecoration DECODESC_LEFT_DOLL
DebugLevel1_Map1_Doll2Script:
jumpstd PokecenterNurseScript
; describedecoration DECODESC_RIGHT_DOLL
DebugLevel1_Map1_BigDollScript:
jumpstd PCScript
; describedecoration DECODESC_BIG_DOLL
DebugLevel1_Map1_GameConsoleScript:
randomwildmon
startbattle
reloadmapafterbattle
end
; describedecoration DECODESC_CONSOLE
DebugLevel1_Map1_PosterScript:
describedecoration DECODESC_POSTER
DebugLevel1_Map1_RadioScript:
jumpstd Radio1Script
DebugLevel1_Map1_BookshelfScript:
jumpstd PictureBookshelfScript
DebugLevel1_Map1_PCScript:
opentext
special PlayersHousePC
iftrue .Warp
closetext
end
.Warp:
warp NONE, 0, 0
end
DebugLevel1_Map1_TrainerYoungsterMikey:
trainer YOUNGSTER, MIKEY, EVENT_DECO_BED_1, .YoungsterMikeySeenText, .YoungsterMikeyBeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext .YoungsterMikeyAfterText
waitbutton
closetext
end
.YoungsterMikeySeenText:
text "You're a #MON"
line "trainer, right?"
para "Then you have to"
line "battle!"
done
.YoungsterMikeyBeatenText:
text "That's strange."
line "I won before."
done
.YoungsterMikeyAfterText:
text "Becoming a good"
line "trainer is really"
cont "tough."
para "I'm going to bat-"
line "tle other people"
cont "to get better."
done
DebugLevel1_Map1_MapEvents:
db 0, 0 ; filler
def_warp_events
warp_event 7, 0, LEVEL_1_MAP_1, 1
def_coord_events
def_bg_events
bg_event 2, 1, BGEVENT_UP, DebugLevel1_Map1_PCScript
bg_event 3, 1, BGEVENT_READ, DebugLevel1_Map1_RadioScript
bg_event 5, 1, BGEVENT_READ, DebugLevel1_Map1_BookshelfScript
bg_event 6, 0, BGEVENT_IFSET, DebugLevel1_Map1_PosterScript
def_object_events
object_event 4, 2, SPRITE_CONSOLE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DebugLevel1_Map1_GameConsoleScript, -1
object_event 4, 4, SPRITE_DOLL_1, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DebugLevel1_Map1_Doll1Script, -1
object_event 5, 4, SPRITE_DOLL_2, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DebugLevel1_Map1_Doll2Script, -1
object_event 0, 1, SPRITE_BIG_DOLL, SPRITEMOVEDATA_BIGDOLL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, DebugLevel1_Map1_BigDollScript, -1
object_event 6, 6, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, DebugLevel1_Map1_TrainerYoungsterMikey, -1

1
maps/DebugLevel1_Map1.blk Executable file
View File

@@ -0,0 +1 @@


View File

@@ -1,16 +1,16 @@
object_const_def
const PLAYERSHOUSE2F_CONSOLE
const PLAYERSHOUSE2F_DOLL_1
const PLAYERSHOUSE2F_DOLL_2
const PLAYERSHOUSE2F_BIG_DOLL
const PLAYERSHOUSE2F_TRAINER
const LEVEL1_MAP1_CONSOLE
const LEVEL1_MAP1_DOLL_1
const LEVEL1_MAP1_DOLL_2
const LEVEL1_MAP1_BIG_DOLL
const LEVEL1_MAP1_TRAINER
Level1_Map1_MapScripts:
def_scene_scripts
def_callbacks
PlayersHouseDoll1Script::
Level1_Map1_Doll1Script::
opentext
callasm .BoardMenu
waitbutton
@@ -22,38 +22,31 @@ PlayersHouseDoll1Script::
ret
; describedecoration DECODESC_LEFT_DOLL
PlayersHouseDoll2Script:
Level1_Map1_Doll2Script:
jumpstd PokecenterNurseScript
; describedecoration DECODESC_RIGHT_DOLL
PlayersHouseBigDollScript:
Level1_Map1_BigDollScript:
jumpstd PCScript
; describedecoration DECODESC_BIG_DOLL
PlayersHouseGameConsoleScript:
Level1_Map1_GameConsoleScript:
randomwildmon
startbattle
reloadmapafterbattle
end
; describedecoration DECODESC_CONSOLE
PlayersHousePosterScript:
Level1_Map1_PosterScript:
describedecoration DECODESC_POSTER
PlayersHouseRadioScript:
Level1_Map1_RadioScript:
jumpstd Radio1Script
.AbbreviatedRadio:
opentext
writetext PlayersRadioText4
pause 45
closetext
end
PlayersHouseBookshelfScript:
Level1_Map1_BookshelfScript:
jumpstd PictureBookshelfScript
PlayersHousePCScript:
Level1_Map1_PCScript:
opentext
special PlayersHousePC
iftrue .Warp
@@ -63,39 +56,19 @@ PlayersHousePCScript:
warp NONE, 0, 0
end
PlayersRadioText1:
text "PROF.OAK'S #MON"
line "TALK! Please tune"
cont "in next time!"
done
PlayersRadioText2:
text "#MON CHANNEL!"
done
PlayersRadioText3:
text "This is DJ MARY,"
line "your co-host!"
done
PlayersRadioText4:
text "#MON!"
line "#MON CHANNEL…"
done
TrainerYoungsterMikey:
trainer YOUNGSTER, MIKEY, EVENT_DECO_BED_1, YoungsterMikeySeenText, YoungsterMikeyBeatenText, 0, .Script
Level1_Map1_TrainerYoungsterMikey:
trainer YOUNGSTER, MIKEY, EVENT_DECO_BED_1, .YoungsterMikeySeenText, .YoungsterMikeyBeatenText, 0, .Script
.Script:
endifjustbattled
opentext
writetext YoungsterMikeyAfterText
writetext .YoungsterMikeyAfterText
waitbutton
closetext
end
YoungsterMikeySeenText:
.YoungsterMikeySeenText:
text "You're a #MON"
line "trainer, right?"
@@ -103,12 +76,12 @@ YoungsterMikeySeenText:
line "battle!"
done
YoungsterMikeyBeatenText:
.YoungsterMikeyBeatenText:
text "That's strange."
line "I won before."
done
YoungsterMikeyAfterText:
.YoungsterMikeyAfterText:
text "Becoming a good"
line "trainer is really"
cont "tough."
@@ -127,14 +100,14 @@ Level1_Map1_MapEvents:
def_coord_events
def_bg_events
bg_event 2, 1, BGEVENT_UP, PlayersHousePCScript
bg_event 3, 1, BGEVENT_READ, PlayersHouseRadioScript
bg_event 5, 1, BGEVENT_READ, PlayersHouseBookshelfScript
bg_event 6, 0, BGEVENT_IFSET, PlayersHousePosterScript
bg_event 2, 1, BGEVENT_UP, Level1_Map1_PCScript
bg_event 3, 1, BGEVENT_READ, Level1_Map1_RadioScript
bg_event 5, 1, BGEVENT_READ, Level1_Map1_BookshelfScript
bg_event 6, 0, BGEVENT_IFSET, Level1_Map1_PosterScript
def_object_events
object_event 4, 2, SPRITE_CONSOLE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, PlayersHouseGameConsoleScript, -1
object_event 4, 4, SPRITE_DOLL_1, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, PlayersHouseDoll1Script, -1
object_event 5, 4, SPRITE_DOLL_2, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, PlayersHouseDoll2Script, -1
object_event 0, 1, SPRITE_BIG_DOLL, SPRITEMOVEDATA_BIGDOLL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, PlayersHouseBigDollScript, -1
object_event 6, 6, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, TrainerYoungsterMikey, -1
object_event 4, 2, SPRITE_CONSOLE, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Level1_Map1_GameConsoleScript, -1
object_event 4, 4, SPRITE_DOLL_1, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Level1_Map1_Doll1Script, -1
object_event 5, 4, SPRITE_DOLL_2, SPRITEMOVEDATA_STILL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Level1_Map1_Doll2Script, -1
object_event 0, 1, SPRITE_BIG_DOLL, SPRITEMOVEDATA_BIGDOLL, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Level1_Map1_BigDollScript, -1
object_event 6, 6, SPRITE_YOUNGSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_TRAINER, 1, Level1_Map1_TrainerYoungsterMikey, -1

View File

@@ -1 +0,0 @@