Some uses of SCREEN_WIDTH and SCREEN_HEIGHT

This commit is contained in:
Rangi 2020-05-25 21:05:52 -04:00
parent 60f7ca4006
commit fe42ef8a88
2 changed files with 10 additions and 5 deletions

View File

@ -356,7 +356,8 @@ TrainerCard_InitBorder:
ld a, $23
ld [hli], a
ld e, SCREEN_HEIGHT - 1
ld e, SCREEN_WIDTH - 3
ld a, " "
.loop2
ld [hli], a
@ -367,11 +368,12 @@ TrainerCard_InitBorder:
ld [hli], a
ld a, $23
ld [hli], a
.loop3
ld a, $23
ld [hli], a
ld e, SCREEN_HEIGHT
ld e, SCREEN_WIDTH - 2
ld a, " "
.loop4
ld [hli], a
@ -380,6 +382,7 @@ TrainerCard_InitBorder:
ld a, $23
ld [hli], a
dec d
jr nz, .loop3
@ -388,14 +391,16 @@ TrainerCard_InitBorder:
ld a, $24
ld [hli], a
ld e, SCREEN_HEIGHT - 1
ld e, SCREEN_WIDTH - 3
ld a, " "
.loop5
ld [hli], a
dec e
jr nz, .loop5
ld a, $23
ld [hli], a
ld e, SCREEN_WIDTH
.loop6
ld a, $23

View File

@ -245,7 +245,7 @@ ParseCredits:
xor a
ldh [hBGMapMode], a
hlcoord 0, 5
ld bc, 20 * 12
ld bc, SCREEN_WIDTH * 12
ld a, " "
call ByteFill
@ -306,7 +306,7 @@ ParseCredits:
.print
; Print strings spaced every two lines.
call .get
ld bc, 20 * 2
ld bc, SCREEN_WIDTH * 2
call AddNTimes
call PlaceString
jr .loop