Use symbolic constant for backgroundBlue.
This commit is contained in:
parent
292cb079a5
commit
f324413101
@ -284,7 +284,7 @@ InitializeSpriteTables:
|
|||||||
InitializeWorld:
|
InitializeWorld:
|
||||||
; Start the background color as a dark blue.
|
; Start the background color as a dark blue.
|
||||||
lda #4
|
lda #4
|
||||||
sta $24
|
sta backgroundBlue
|
||||||
|
|
||||||
; Player's initial starting location.
|
; Player's initial starting location.
|
||||||
lda #(256 / 4)
|
lda #(256 / 4)
|
||||||
@ -568,7 +568,7 @@ ShotDone:
|
|||||||
SetBackgroundColor:
|
SetBackgroundColor:
|
||||||
; The background-color bytes are (R, G, B), each ranging from [0-31].
|
; The background-color bytes are (R, G, B), each ranging from [0-31].
|
||||||
; The palette color format is 15-bit: [0bbbbbgg][gggrrrrr]
|
; The palette color format is 15-bit: [0bbbbbgg][gggrrrrr]
|
||||||
|
|
||||||
; Set the background color.
|
; Set the background color.
|
||||||
; Entry 0 corresponds to the SNES background color.
|
; Entry 0 corresponds to the SNES background color.
|
||||||
stz CGADDR
|
stz CGADDR
|
||||||
|
Loading…
Reference in New Issue
Block a user