Skip to content

Commit 0bfb6f7

Browse files
Merge pull request #70 from zohassadar/palette_tables
group palette data by index
2 parents c737454 + 1a4fdf1 commit 0bfb6f7

File tree

1 file changed

+48
-15
lines changed

1 file changed

+48
-15
lines changed

src/palettes.asm

Lines changed: 48 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,55 @@
1+
; ppu hi, ppu lo
2+
; length
3+
; palette data
4+
; $FF
5+
16
game_palette:
2-
.byte $3F,$00,$20,$0F,$30,$12,$16,$0F
3-
.byte $20,$12,$00,$0F,$2C,$16,$29,$0F
4-
.byte $3C,$00,$30,$0F,$16,$2A,$22,$0F
5-
.byte $10,$16,$2D,$0F,$2C,$16,$29,$0F
6-
.byte $3C,$00,$30,$FF
7+
.byte $3F,$00
8+
.byte $20
9+
.byte $0F,$30,$12,$16 ; bg
10+
.byte $0F,$20,$12,$00
11+
.byte $0F,$2C,$16,$29
12+
.byte $0F,$3C,$00,$30
13+
.byte $0F,$16,$2A,$22 ; sprite
14+
.byte $0F,$10,$16,$2D
15+
.byte $0F,$2C,$16,$29
16+
.byte $0F,$3C,$00,$30
17+
.byte $FF
718
title_palette:
8-
.byte $3F,$00,$14,$0F,$3C,$38,$00,$0F
9-
.byte $17,$27,$37,$0F,$30,MENU_HIGHLIGHT_COLOR,$00,$0F
10-
.byte $22,$2A,$28,$0F,$30,$29,$27,$FF
19+
.byte $3F,$00
20+
.byte $14
21+
.byte $0F,$3C,$38,$00 ; bg
22+
.byte $0F,$17,$27,$37
23+
.byte $0F,$30,MENU_HIGHLIGHT_COLOR,$00
24+
.byte $0F,$22,$2A,$28
25+
.byte $0F,$30,$29,$27 ; sprite
26+
.byte $FF
1127
menu_palette:
12-
.byte $3F,$00,$16,$0F,$30,$38,$26,$0F
13-
.byte $17,$27,$37,$0F,$30,MENU_HIGHLIGHT_COLOR,$00,$0F
14-
.byte $16,$2A,$28,$0F,$16,$26,$27,$0f,$2A,$FF
28+
.byte $3F,$00
29+
.byte $16
30+
.byte $0F,$30,$38,$26 ; bg
31+
.byte $0F,$17,$27,$37
32+
.byte $0F,$30,MENU_HIGHLIGHT_COLOR,$00
33+
.byte $0F,$16,$2A,$28
34+
.byte $0F,$16,$26,$27 ; sprite
35+
.byte $0F,$2A
36+
.byte $FF
1537
rocket_palette:
16-
.byte $3F,$11,$7,$16,$2A,$28,$0f,$37,$18,$38 ; sprite
17-
.byte $3F,$00,$8,$0f,$3C,$38,$00,$0F,$20,$12,$15 ; bg
38+
.byte $3F,$11
39+
.byte $07
40+
.byte $16,$2A,$28 ; sprite
41+
.byte $0F,$37,$18,$38
42+
.byte $3F,$00
43+
.byte $08
44+
.byte $0F,$3C,$38,$00 ; bg
45+
.byte $0F,$20,$12,$15
1846
.byte $FF
1947
wait_palette:
20-
.byte $3F,$11,$1,$30
21-
.byte $3F,$00,$8,$f,$30,$38,$26,$0F,$17,$27,$37
48+
.byte $3F,$11
49+
.byte $01
50+
.byte $30 ; sprite
51+
.byte $3F,$00
52+
.byte $08
53+
.byte $0F,$30,$38,$26 ; bg
54+
.byte $0F,$17,$27,$37
2255
.byte $FF

0 commit comments

Comments
 (0)