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

View File

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