mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
SFX player in debug menu
This commit is contained in:
parent
dbc0221e15
commit
5a7a380e37
@ -351,7 +351,7 @@ BoardMenu_BreakDieAnimation:
|
|||||||
ldh [hUsedSpriteIndex], a
|
ldh [hUsedSpriteIndex], a
|
||||||
farcall _UpdateActiveSpritesAfterOffset
|
farcall _UpdateActiveSpritesAfterOffset
|
||||||
|
|
||||||
ld de, SFX_STRENGTH
|
ld de, SFX_PLACE_PUZZLE_PIECE_DOWN
|
||||||
call PlaySFX
|
call PlaySFX
|
||||||
|
|
||||||
; play break die and appear die number animations
|
; play break die and appear die number animations
|
||||||
|
@ -28,6 +28,7 @@ DEF DEBUGROOMMENU_NUM_PAGES EQU const_value
|
|||||||
const DEBUGROOMMENUITEM_RAM_FLAG_CLR ; 12
|
const DEBUGROOMMENUITEM_RAM_FLAG_CLR ; 12
|
||||||
const DEBUGROOMMENUITEM_CHANGE_SEX ; 13
|
const DEBUGROOMMENUITEM_CHANGE_SEX ; 13
|
||||||
const DEBUGROOMMENUITEM_BT_BUG_POKE ; 14
|
const DEBUGROOMMENUITEM_BT_BUG_POKE ; 14
|
||||||
|
const DEBUGROOMMENUITEM_SFX_PLAYER ; 15
|
||||||
|
|
||||||
_DebugRoom:
|
_DebugRoom:
|
||||||
ldh a, [hJoyDown]
|
ldh a, [hJoyDown]
|
||||||
@ -108,6 +109,7 @@ _DebugRoom:
|
|||||||
db "RAM FLAG CLR@"
|
db "RAM FLAG CLR@"
|
||||||
db "CHANGE SEX@"
|
db "CHANGE SEX@"
|
||||||
db "BT BUG POKE@"
|
db "BT BUG POKE@"
|
||||||
|
db "SFX PLAYER@"
|
||||||
|
|
||||||
.Jumptable:
|
.Jumptable:
|
||||||
; entries correspond to DEBUGROOMMENUITEM_* constants
|
; entries correspond to DEBUGROOMMENUITEM_* constants
|
||||||
@ -132,6 +134,7 @@ _DebugRoom:
|
|||||||
dw DebugRoomMenu_RAMFlagClr
|
dw DebugRoomMenu_RAMFlagClr
|
||||||
dw DebugRoomMenu_ChangeSex
|
dw DebugRoomMenu_ChangeSex
|
||||||
dw DebugRoomMenu_BTBugPoke
|
dw DebugRoomMenu_BTBugPoke
|
||||||
|
dw DebugRoomMenu_SFXPlayer
|
||||||
|
|
||||||
.MenuItems:
|
.MenuItems:
|
||||||
; entries correspond to DEBUGROOMMENU_* constants
|
; entries correspond to DEBUGROOMMENU_* constants
|
||||||
@ -161,12 +164,13 @@ _DebugRoom:
|
|||||||
db -1
|
db -1
|
||||||
|
|
||||||
; DEBUGROOMMENU_PAGE_3
|
; DEBUGROOMMENU_PAGE_3
|
||||||
db 6
|
db 7
|
||||||
db DEBUGROOMMENUITEM_TEL_DEBUG
|
db DEBUGROOMMENUITEM_TEL_DEBUG
|
||||||
db DEBUGROOMMENUITEM_SUM_RECALC
|
db DEBUGROOMMENUITEM_SUM_RECALC
|
||||||
db DEBUGROOMMENUITEM_RAM_FLAG_CLR
|
db DEBUGROOMMENUITEM_RAM_FLAG_CLR
|
||||||
db DEBUGROOMMENUITEM_CHANGE_SEX
|
db DEBUGROOMMENUITEM_CHANGE_SEX
|
||||||
db DEBUGROOMMENUITEM_BT_BUG_POKE
|
db DEBUGROOMMENUITEM_BT_BUG_POKE
|
||||||
|
db DEBUGROOMMENUITEM_SFX_PLAYER
|
||||||
db DEBUGROOMMENUITEM_NEXT
|
db DEBUGROOMMENUITEM_NEXT
|
||||||
db -1
|
db -1
|
||||||
|
|
||||||
@ -1680,6 +1684,30 @@ DebugRoomMenu_BTBugPoke:
|
|||||||
next "No. Clear flag?"
|
next "No. Clear flag?"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
DebugRoomMenu_SFXPlayer:
|
||||||
|
ld de, MUSIC_NONE
|
||||||
|
call PlayMusic
|
||||||
|
ld e, 0
|
||||||
|
.loop
|
||||||
|
ld d, 0
|
||||||
|
push de
|
||||||
|
ld hl, wDebugRoomSFXID
|
||||||
|
ld [hl], e
|
||||||
|
ld de, wDebugRoomSFXID
|
||||||
|
hlcoord 4, 16
|
||||||
|
ld c, 1
|
||||||
|
call PrintHexNumber
|
||||||
|
pop de
|
||||||
|
call PlaySFX
|
||||||
|
call DebugRoom_JoyWaitABSelect
|
||||||
|
call WaitSFX
|
||||||
|
ld a, [wDebugRoomSFXID]
|
||||||
|
inc a
|
||||||
|
ld e, a
|
||||||
|
cp NUM_SFX
|
||||||
|
jr c, .loop
|
||||||
|
ret
|
||||||
|
|
||||||
PrintHexNumber:
|
PrintHexNumber:
|
||||||
; Print the c-byte value from de to hl as hexadecimal digits.
|
; Print the c-byte value from de to hl as hexadecimal digits.
|
||||||
.loop
|
.loop
|
||||||
|
@ -33,7 +33,7 @@ AlreadyBeatenTrainerScript:
|
|||||||
|
|
||||||
SeenByTalkerScript::
|
SeenByTalkerScript::
|
||||||
waitsfx ; wait for any pending space-related sfx
|
waitsfx ; wait for any pending space-related sfx
|
||||||
; playsound SFX_
|
playsound SFX_UNKNOWN_66
|
||||||
showemote EMOTE_TALK, LAST_TALKED, 20
|
showemote EMOTE_TALK, LAST_TALKED, 20
|
||||||
trainerortalkerflagaction SET_FLAG
|
trainerortalkerflagaction SET_FLAG
|
||||||
callasm .TalkOrSkipTalker
|
callasm .TalkOrSkipTalker
|
||||||
|
@ -924,6 +924,8 @@ wDebugRoomMonBox:: db
|
|||||||
NEXTU
|
NEXTU
|
||||||
; debug room GB ID values
|
; debug room GB ID values
|
||||||
wDebugRoomGBID:: dw
|
wDebugRoomGBID:: dw
|
||||||
|
NEXTU
|
||||||
|
wDebugRoomSFXID:: db
|
||||||
ENDU
|
ENDU
|
||||||
|
|
||||||
endc
|
endc
|
||||||
|
Loading…
Reference in New Issue
Block a user