ref: fe42ef8a88cce02fdee08b46d01dff8ba4b4b1f1
parent: 60f7ca40061da7ac5524636438f6bde10ea15ecb
author: Rangi <[email protected]>
date: Mon May 25 17:05:52 EDT 2020
Some uses of SCREEN_WIDTH and SCREEN_HEIGHT
--- a/engine/menus/trainer_card.asm
+++ b/engine/menus/trainer_card.asm
@@ -356,7 +356,8 @@
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 @@
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 @@
ld a, $23
ld [hli], a
+
dec d
jr nz, .loop3
@@ -388,14 +391,16 @@
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
--- a/engine/movie/credits.asm
+++ b/engine/movie/credits.asm
@@ -245,7 +245,7 @@
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 @@
; Print strings spaced every two lines.
call .get
- ld bc, 20 * 2
+ ld bc, SCREEN_WIDTH * 2
call AddNTimes
call PlaceString
jr .loop