blob: 44690db076b328ce5164ced07b25ef367b438992 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
; returns whether the player is one tile outside the map in Z
IsPlayerJustOutsideMap:
ld a, [wYCoord]
ld b, a
ld a, [wCurMapHeight]
call .compareCoordWithMapDimension
ret z
ld a, [wXCoord]
ld b, a
ld a, [wCurMapWidth]
.compareCoordWithMapDimension
add a
cp b
ret z
inc b
ret
|