some better colors
This commit is contained in:
parent
e828776a14
commit
c33178ceac
@ -4,9 +4,6 @@ gamereset:
|
||||
; Turn MultiColor mode on
|
||||
jsr multicolorOn
|
||||
|
||||
; Set overscan
|
||||
lda #11
|
||||
sta $d020
|
||||
; Upper bar -- fill with reversed spaces, color yellow
|
||||
ldx #39
|
||||
upperbarLoop:
|
||||
|
@ -36,10 +36,9 @@ SNAKE_TILE = 81
|
||||
SNAKE_COLOR = 13
|
||||
; Food features
|
||||
FOOD_TILE = 90
|
||||
FOOD_COLOR = 11
|
||||
FOOD_COLOR = 10
|
||||
; Wall features
|
||||
WALL_TILE = 91
|
||||
WALL_COLOR = 11
|
||||
|
||||
; Strings
|
||||
; ----------------------------------------------------------------------
|
||||
|
@ -37,11 +37,11 @@ multicolorInit:
|
||||
; ----------------------------------------------------------------------
|
||||
multicolorOn:
|
||||
; Set colors
|
||||
lda #9
|
||||
sta $d021 ; 00 is brown
|
||||
lda #2
|
||||
sta $d022 ; 01 is red
|
||||
lda #13
|
||||
lda #$0
|
||||
sta $d021 ; 00 is black
|
||||
lda #$a
|
||||
sta $d022 ; 01 is gray
|
||||
lda #$d
|
||||
sta $d023 ; 10 is green
|
||||
; and of course
|
||||
; 11 is the colour specified in color RAM
|
||||
|
@ -7,9 +7,9 @@ void flush(char last, int count) {
|
||||
char tile, color;
|
||||
switch(last) {
|
||||
case 'x':
|
||||
tile = (char)91; color = (char)11; break;
|
||||
tile = (char)91; color = (char)0x8; break;
|
||||
case 'f':
|
||||
tile = (char)90; color = (char)11; break;
|
||||
tile = (char)90; color = (char)0xa; break;
|
||||
default:
|
||||
tile = (char)32; break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user