summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2018-08-25 22:38:57 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2018-08-25 22:38:57 -0400
commit4c8c5c10a8c7619cfadf68072f2c52ae0e724386 (patch)
tree071be85766d4f582951e106b5716c7a1eda5bc26 /engine
parent3eacab563d0e1ab5557c2443556a7a5e58d14cad (diff)
Use rgbasm's GameBoy graphics literal for initializing wCreditsFaux2bpp
In the 2BPP format, two bytes %ABCDEFGH %abcdefgh define eight pixels %Aa %Bb %Cc %Dd %Ee %Ff %Gg %Hh. Four valid colors: %00 = 0 = white, %01 = 1 = dark, %10 = 2 = light, %11 = 3 = black. Thus `22222222 = pixels %10 %10 %10 %10 %10 %10 %10 %10 = bytes %11111111 %00000000 = $ff00.
Diffstat (limited to 'engine')
-rw-r--r--engine/movie/credits.asm4
-rw-r--r--engine/movie/crystal_intro.asm2
2 files changed, 3 insertions, 3 deletions
diff --git a/engine/movie/credits.asm b/engine/movie/credits.asm
index 462c30523..f3939004c 100644
--- a/engine/movie/credits.asm
+++ b/engine/movie/credits.asm
@@ -21,8 +21,8 @@ Credits::
call ClearSprites
ld hl, wCreditsFaux2bpp
- ld c, $80
- ld de, $ff00
+ ld c, wCreditsFaux2bppEnd - wCreditsFaux2bpp
+ ld de, `22222222 ; eight pixels, each with color #2
.load_loop
ld a, e
diff --git a/engine/movie/crystal_intro.asm b/engine/movie/crystal_intro.asm
index 8bbfb9be8..5c4f38151 100644
--- a/engine/movie/crystal_intro.asm
+++ b/engine/movie/crystal_intro.asm
@@ -795,7 +795,7 @@ IntroScene9:
call DelayFrame
call DelayFrame
call DelayFrame
- ld a, $c ; $980c
+ ld a, LOW(vBGMap0 + $c) ; $c
ldh [hBGMapAddress], a
call DelayFrame
call DelayFrame