some better colors

This commit is contained in:
giomba 2020-04-06 16:22:48 +02:00
parent e828776a14
commit c33178ceac
4 changed files with 8 additions and 12 deletions

View File

@ -4,9 +4,6 @@ gamereset:
; Turn MultiColor mode on ; Turn MultiColor mode on
jsr multicolorOn jsr multicolorOn
; Set overscan
lda #11
sta $d020
; Upper bar -- fill with reversed spaces, color yellow ; Upper bar -- fill with reversed spaces, color yellow
ldx #39 ldx #39
upperbarLoop: upperbarLoop:

View File

@ -36,10 +36,9 @@ SNAKE_TILE = 81
SNAKE_COLOR = 13 SNAKE_COLOR = 13
; Food features ; Food features
FOOD_TILE = 90 FOOD_TILE = 90
FOOD_COLOR = 11 FOOD_COLOR = 10
; Wall features ; Wall features
WALL_TILE = 91 WALL_TILE = 91
WALL_COLOR = 11
; Strings ; Strings
; ---------------------------------------------------------------------- ; ----------------------------------------------------------------------

View File

@ -37,11 +37,11 @@ multicolorInit:
; ---------------------------------------------------------------------- ; ----------------------------------------------------------------------
multicolorOn: multicolorOn:
; Set colors ; Set colors
lda #9 lda #$0
sta $d021 ; 00 is brown sta $d021 ; 00 is black
lda #2 lda #$a
sta $d022 ; 01 is red sta $d022 ; 01 is gray
lda #13 lda #$d
sta $d023 ; 10 is green sta $d023 ; 10 is green
; and of course ; and of course
; 11 is the colour specified in color RAM ; 11 is the colour specified in color RAM

View File

@ -7,9 +7,9 @@ void flush(char last, int count) {
char tile, color; char tile, color;
switch(last) { switch(last) {
case 'x': case 'x':
tile = (char)91; color = (char)11; break; tile = (char)91; color = (char)0x8; break;
case 'f': case 'f':
tile = (char)90; color = (char)11; break; tile = (char)90; color = (char)0xa; break;
default: default:
tile = (char)32; break; tile = (char)32; break;
} }