mirror of
https://github.com/thornAvery/jep-hack.git
synced 2025-09-16 18:20:50 +12:00

This adds some infrastructure for the Safari Game, specifically; - The guards who let you in; the ticket is given and Safari Balls are provided; you also get the leaving early and so on. Bit janky at times. - Infrastructure for the step system, albeit unfinished; the steps aren't initially counted and there's no kicking out process yet. All in all, it's now playable, but the loss conditions are not yet finished. I shall now lay down in a dark room.
43 lines
848 B
NASM
43 lines
848 B
NASM
SafariZoneBeta_MapScripts:
|
|
def_scene_scripts
|
|
|
|
def_callbacks
|
|
|
|
SafariZoneCheckSteps:
|
|
ld a, [wSafariZoneStepCount] ; check if you have more than 0 steps.
|
|
jr nz, .skip ; if not zero, ignore. easy enough.
|
|
|
|
checkitem SAFARI_BALL ; check if the player has any safari balls left
|
|
iftrue .skip ; this checks if there's any at all, so same principle.
|
|
|
|
playsound SFX_ELEVATOR_END
|
|
opentext
|
|
writetext SafariZoneTimesUpText
|
|
waitbutton
|
|
closetext
|
|
warpfacing UP, SAFARI_ZONE_FUCHSIA_GATE_BETA, 4, 0
|
|
.skip
|
|
ret
|
|
|
|
SafariZoneTimesUpText:
|
|
text "PA: Ding-dong!"
|
|
|
|
para "Time's up!"
|
|
|
|
para "Your SAFARI GAME"
|
|
line "is over!"
|
|
done
|
|
|
|
SafariZoneBeta_MapEvents:
|
|
db 0, 0 ; filler
|
|
|
|
def_warp_events
|
|
warp_event 9, 23, SAFARI_ZONE_FUCHSIA_GATE_BETA, 1
|
|
warp_event 10, 23, SAFARI_ZONE_FUCHSIA_GATE_BETA, 2
|
|
|
|
def_coord_events
|
|
|
|
def_bg_events
|
|
|
|
def_object_events
|