mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Separate maps.asm, pics.asm, sprites.asm, and tilesets.asm from main.asm (#251)
Each new file builds its own .o, along with separate main.o and home.o, which necessitates many more "exported::" labels.
This commit is contained in:
parent
ff927ba730
commit
4b853ad676
317 changed files with 2290 additions and 2240 deletions
|
|
@ -1,5 +1,5 @@
|
|||
; only used for setting bit 2 of wd736 upon entering a new map
|
||||
IsPlayerStandingOnWarp:
|
||||
IsPlayerStandingOnWarp::
|
||||
ld a, [wNumberOfWarps]
|
||||
and a
|
||||
ret z
|
||||
|
|
@ -31,7 +31,7 @@ IsPlayerStandingOnWarp:
|
|||
jr nz, .loop
|
||||
ret
|
||||
|
||||
CheckForceBikeOrSurf:
|
||||
CheckForceBikeOrSurf::
|
||||
ld hl, wd732
|
||||
bit 5, [hl]
|
||||
ret nz
|
||||
|
|
@ -84,7 +84,7 @@ CheckForceBikeOrSurf:
|
|||
|
||||
INCLUDE "data/force_bike_surf.asm"
|
||||
|
||||
IsPlayerFacingEdgeOfMap:
|
||||
IsPlayerFacingEdgeOfMap::
|
||||
push hl
|
||||
push de
|
||||
push bc
|
||||
|
|
@ -150,7 +150,7 @@ IsPlayerFacingEdgeOfMap:
|
|||
scf
|
||||
ret
|
||||
|
||||
IsWarpTileInFrontOfPlayer:
|
||||
IsWarpTileInFrontOfPlayer::
|
||||
push hl
|
||||
push de
|
||||
push bc
|
||||
|
|
@ -188,7 +188,7 @@ IsSSAnneBowWarpTileInFrontOfPlayer:
|
|||
and a
|
||||
jr IsWarpTileInFrontOfPlayer.done
|
||||
|
||||
IsPlayerStandingOnDoorTileOrWarpTile:
|
||||
IsPlayerStandingOnDoorTileOrWarpTile::
|
||||
push hl
|
||||
push de
|
||||
push bc
|
||||
|
|
@ -217,7 +217,7 @@ IsPlayerStandingOnDoorTileOrWarpTile:
|
|||
|
||||
INCLUDE "data/warp_tile_ids.asm"
|
||||
|
||||
PrintSafariZoneSteps:
|
||||
PrintSafariZoneSteps::
|
||||
ld a, [wCurMap]
|
||||
cp SAFARI_ZONE_EAST
|
||||
ret c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue