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:
Rangi 2020-06-27 15:32:24 -04:00 committed by GitHub
parent ff927ba730
commit 4b853ad676
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
317 changed files with 2290 additions and 2240 deletions

View file

@ -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