minor things for testing celeste hill

trying to debug this. made the warp better and moved cuno's cry. fixed some minor shitty code too.
This commit is contained in:
Llinos Evans 2023-06-04 11:50:43 +01:00
parent 0aa26308f2
commit d10bbb5ba6
3 changed files with 15 additions and 40 deletions

View file

@ -7,7 +7,7 @@ RedsHouse2F_Object:
;warp_event 5, 1, SILPH_CO_11F, 1 ; - Test Omega & Giovanni
;warp_event 5, 1, ROCKET_HIDEOUT_B4F, 2 ; - Test Giovanni 1
;warp_event 5, 1, MT_MOON_SQUARE, 1 ; - Test Shop, NPCs, and Crater
warp_event 5, 1, CELESTE_HILL, 1 ; - Test Birds
warp_event 5, 1, CELESTE_HILL, 2 ; - Test Birds
def_bg_events

View file

@ -291,7 +291,3 @@ RivalIDs:
db OPP_RIVAL3
db -1 ; end
RLEList_PlayerGZapMovement::
db D_DOWN, 1
db D_LEFT, 1
db -1 ; end

View file

@ -13,22 +13,18 @@ CelesteHillCoords1:
GalarianBirdScript1:
; CheckEvent EVENT_BIRDS_FOUND
; jr z, .cont
; jr nz, .done
;.cont - This code is unfinished and bad.
; If you have any ideas lmk :3
ld hl, CelesteHillCoords1
call ArePlayerCoordsInArray
jp nc, .done
ld [wJoyIgnore], a
SetEvent EVENT_BIRDS_FOUND
ld a, ARTICUNO_G
call PlayCry
ld a, $1
ldh [hSpriteIndexOrTextID], a
call DisplayTextID
ld a, ARTICUNO_G
call PlayCry
call WaitForSoundToFinish
pop hl
ld de, BirdSprite
@ -66,16 +62,16 @@ GalarianBirdScript1:
ld a, ZAPDOS_G
call PlayCry
call ZapdosRunThrough
call ZapdosRunThrough ; something breaks here. i do not know what.
ld a, HS_CELESTE_ZAPDOS_G
ld [wMissableObjectIndex], a
predef ShowObject
ld a, $1
ldh [hSpriteIndex], a
call SetSpriteMovementBytesToFF
ld a, [wXCoord]
; ld a, $1
; ldh [hSpriteIndex], a
; call SetSpriteMovementBytesToFF
; ld a, [wXCoord]
jr .done
.done
@ -136,36 +132,21 @@ GalarianArticunoFlyScreenCoords2:
db $F0, $00
; This function currently causes the game to crash. It happens right as GZap walks towards the player.
; Interestingly, this happens after a single step. I have tried dividing this, but it doesn't seem to help.
; Could be worth cutting the event entirely.
ZapdosRunThrough:
call Delay3
ld a, $2
ldh [hSpriteIndex], a
ld de, GalarianZapdosMovement1
call MoveSprite
ld hl, wSimulatedJoypadStatesEnd
ld de, RLEList_PlayerGZapMovement
call DecodeRLEList
dec a
ld [wSimulatedJoypadStatesIndex], a
call StartSimulatingJoypadStates
ld a, $1
ldh [hSpriteIndex], a
xor a
ldh [hSpriteFacingDirection], a
call SetSpriteFacingDirectionAndDelay
ld a, $2
ldh [hSpriteIndex], a
ld de, GalarianZapdosMovement2
ld de, GalarianZapdosMovement
call MoveSprite
ret
GalarianZapdosMovement1:
GalarianZapdosMovement:
db NPC_MOVEMENT_DOWN
db -1
GalarianZapdosMovement2:
db NPC_MOVEMENT_DOWN
db NPC_MOVEMENT_LEFT
db NPC_MOVEMENT_DOWN
db NPC_MOVEMENT_DOWN
db NPC_MOVEMENT_DOWN
@ -187,6 +168,4 @@ CelesteHillSign1:
CelesteHillSign2:
text_far _CelesteHillSign2
text_end
text_end ; unused