Skip to content

Commit

Permalink
Save
Browse files Browse the repository at this point in the history
  • Loading branch information
clandrew committed Sep 18, 2024
1 parent ad22021 commit 056c428
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions BitmapEmbedder/BitmapEmbedder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ byte RemapColorToArbitraryPalette(WICColor c)
case 0xff503800: return 0x3E;
case 0xff685018: return 0x3F;

// HUD should be appended at the end. HUD uses its own dedicated LUT currently,
// but we could put it onto the same LUT because we have the luxury of 256 colors.
// HUD colors
case 0xff585800: return 0x40;
case 0xffc8c000: return 0x41;
case 0xfff8f800: return 0x42;
Expand Down
16 changes: 8 additions & 8 deletions demo/tinyvicky/rsrc/colors_main.s
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LUT_IMG_START ; Loaded into memory at .11f6
LUT_IMG_START
.byte $00, $00, $00
.byte $00, $88, $70 ; Green in top left. Color $01
.byte $10, $80, $60 ; Next green, Color $02
Expand Down Expand Up @@ -35,12 +35,12 @@ LUT_IMG_START ; Loaded into memory at .11f6
.byte $00, $40, $30 ; $1F


.byte $00, $10, $20 ; 0x20
.byte $00, $00, $08
.byte $00, $28, $38
.byte $58, $58, $58
.byte $00, $30, $40
.byte $00, $40, $30
.byte $00, $00, $00 ; 0x20 - unused
.byte $00, $00, $00
.byte $00, $00, $00
.byte $00, $00, $00
.byte $00, $00, $00
.byte $00, $00, $00

; For sprite
.byte $00, $28, $40 ; $26
Expand All @@ -58,7 +58,7 @@ LUT_IMG_START ; Loaded into memory at .11f6
.byte $68, $20, $00 ; $32
.byte $90, $40, $00 ; $33

.byte $00, $00, $00 ; $34
.byte $00, $00, $00 ; $34 - unused
.byte $00, $00, $00 ; $35

; Other- colors which appeared in tileset but not in the reference image
Expand Down

0 comments on commit 056c428

Please sign in to comment.