You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
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.
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user