summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gfx/data_select/data_select.attrmapbin0 -> 1024 bytes
-rw-r--r--gfx/data_select/data_select.bin.xorbin0 -> 3282 bytes
-rw-r--r--gfx/data_select/data_select.pngbin0 -> 2006 bytes
-rw-r--r--gfx/data_select/data_select.tilemapbin0 -> 1024 bytes
-rw-r--r--gfx/data_select/data_select.tilemap_attrmap.xorbin0 -> 839 bytes
-rw-r--r--gfx/gfx.mk17
-rw-r--r--source/bank_69.asm5
-rw-r--r--source/bank_6a.asm4
8 files changed, 24 insertions, 2 deletions
diff --git a/gfx/data_select/data_select.attrmap b/gfx/data_select/data_select.attrmap
new file mode 100644
index 0000000..36dedc9
--- /dev/null
+++ b/gfx/data_select/data_select.attrmap
Binary files differ
diff --git a/gfx/data_select/data_select.bin.xor b/gfx/data_select/data_select.bin.xor
new file mode 100644
index 0000000..064f8da
--- /dev/null
+++ b/gfx/data_select/data_select.bin.xor
Binary files differ
diff --git a/gfx/data_select/data_select.png b/gfx/data_select/data_select.png
new file mode 100644
index 0000000..ea64d58
--- /dev/null
+++ b/gfx/data_select/data_select.png
Binary files differ
diff --git a/gfx/data_select/data_select.tilemap b/gfx/data_select/data_select.tilemap
new file mode 100644
index 0000000..63f5f73
--- /dev/null
+++ b/gfx/data_select/data_select.tilemap
Binary files differ
diff --git a/gfx/data_select/data_select.tilemap_attrmap.xor b/gfx/data_select/data_select.tilemap_attrmap.xor
new file mode 100644
index 0000000..f8274ae
--- /dev/null
+++ b/gfx/data_select/data_select.tilemap_attrmap.xor
Binary files differ
diff --git a/gfx/gfx.mk b/gfx/gfx.mk
index 888d50a..ac7c62b 100644
--- a/gfx/gfx.mk
+++ b/gfx/gfx.mk
@@ -1,8 +1,21 @@
-gfx := $(patsubst %.png, $(dir_build)/%.bin, \
- $(call rwildcard, gfx, *.png))
+gfx_exceptions := \
+$(dir_build)/gfx/data_select/data_select.bin
+
+gfx := $(filter-out $(gfx_exceptions), \
+ $(patsubst %.png, $(dir_build)/%.bin, \
+ $(call rwildcard, gfx, *.png)))
RGBGFXFLAGS :=
$(dir_build)/%.bin: %.png | $$(dir $$@)
$(RGBGFX) $(RGBGFXFLAGS) -o $@ $<
$(dir_build)/gfx/sprites/%.bin: RGBGFXFLAGS = -h
+
+# data_select.tilemap_attrmap.xor decompresses to data_select.tilemap concatenated with data_select.attrmap
+$(dir_build)/gfx/data_select/data_select.tilemap_attrmap: gfx/data_select/data_select.tilemap gfx/data_select/data_select.attrmap | $$(dir $$@)
+ cat $^ > $@
+
+# data_select.bin.xor decompresses to 2bpp-encoded data_select.png with an extra byte $33 (ASCII "3") appended
+$(dir_build)/gfx/data_select/data_select.bin: gfx/data_select/data_select.bin.png | $$(dir $$@)
+ $(RGBGFX) $(RGBGFXFLAGS) -o $@ $<
+ printf 3 >> $@
diff --git a/source/bank_69.asm b/source/bank_69.asm
index 8ec3dc4..50e3978 100644
--- a/source/bank_69.asm
+++ b/source/bank_69.asm
@@ -22,3 +22,8 @@ SECTION "gfx_textbox_border", ROMX[$6800], BANK[$69]
gfx_textbox_border_bw::
INCBIN "gfx/fonts/textbox_border_bw.bin"
.end::
+
+SECTION "compressed_gfx_data_select", ROMX[$7000], BANK[$69]
+compressed_gfx_data_select::
+INCBIN "gfx/data_select/data_select.bin.xor"
+.end::
diff --git a/source/bank_6a.asm b/source/bank_6a.asm
new file mode 100644
index 0000000..bfbd676
--- /dev/null
+++ b/source/bank_6a.asm
@@ -0,0 +1,4 @@
+SECTION "compressed_tilemap_attrmap_data_select", ROMX[$7c00], BANK[$6a]
+compressed_tilemap_attrmap_data_select::
+INCBIN "gfx/data_select/data_select.tilemap_attrmap.xor"
+.end::