summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GFX/Makefile12
-rw-r--r--GFX/Sprites.datbin0 -> 32 bytes
-rw-r--r--GFX/Tiles-16Col.datbin0 -> 64 bytes
-rw-r--r--GFX/Tiles-4Col.datbin0 -> 1280 bytes
-rw-r--r--GFX/palette.datbin0 -> 32 bytes
-rw-r--r--Makefile7
-rw-r--r--link.asm1
-rw-r--r--tiles.asm23
8 files changed, 41 insertions, 2 deletions
diff --git a/GFX/Makefile b/GFX/Makefile
new file mode 100644
index 0000000..fa6a26d
--- /dev/null
+++ b/GFX/Makefile
@@ -0,0 +1,12 @@
+all: Tiles-4Col.dat Tiles-16Col.dat Sprites.dat palette.dat
+
+Tiles-4Col.dat: Tiles-4Col.png
+ snesgfx Tiles-4Col.png Tiles-4Col.dat
+
+palette.dat: Tiles-16Col.dat
+
+Tiles-16Col.dat: Tiles-16Col.png
+ snesgfx -p palette.dat -c 16 Tiles-16Col.png Tiles-16Col.dat
+
+Sprites.dat: Sprites.png
+ snesgfx -c 16 Sprites.png Sprites.dat
diff --git a/GFX/Sprites.dat b/GFX/Sprites.dat
new file mode 100644
index 0000000..0b644da
--- /dev/null
+++ b/GFX/Sprites.dat
Binary files differ
diff --git a/GFX/Tiles-16Col.dat b/GFX/Tiles-16Col.dat
new file mode 100644
index 0000000..b5a1241
--- /dev/null
+++ b/GFX/Tiles-16Col.dat
Binary files differ
diff --git a/GFX/Tiles-4Col.dat b/GFX/Tiles-4Col.dat
new file mode 100644
index 0000000..972f4ba
--- /dev/null
+++ b/GFX/Tiles-4Col.dat
Binary files differ
diff --git a/GFX/palette.dat b/GFX/palette.dat
new file mode 100644
index 0000000..91b427e
--- /dev/null
+++ b/GFX/palette.dat
Binary files differ
diff --git a/Makefile b/Makefile
index 1e31944..9c0a07b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,14 @@
TARGET = tll-snes.sfc
-LIBS = main.lib
+LIBS = main.lib tiles.lib
-TARGET: main.lib
+$(TARGET): $(LIBS) link.asm
casm link.asm
main.lib: main.asm
casm main.asm
+tiles.lib: tiles.asm
+ casm tiles.asm
+
clean:
rm -f $(TARGET) $(LIBS)
diff --git a/link.asm b/link.asm
index b54d15e..91e381a 100644
--- a/link.asm
+++ b/link.asm
@@ -7,3 +7,4 @@
option snes-irq,irq,irq_handler
import "main.lib"
+ import "tiles.lib"
diff --git a/tiles.asm b/tiles.asm
new file mode 100644
index 0000000..0ed84df
--- /dev/null
+++ b/tiles.asm
@@ -0,0 +1,23 @@
+ processor 65c816
+
+ option output-file,"tiles.lib"
+ option output-format,lib
+
+ org $8000
+ bank 1
+
+Col4Tiles:
+ incbin "GFX/Tiles-4Col.dat"
+Col4TilesLen: equ $ - Col4Tiles
+
+Col16Tiles:
+ incbin "GFX/Tiles-16Col.dat"
+Col16TilesLen: equ $ - Col16Tiles
+
+SpriteData:
+ incbin "GFX/Sprites.dat"
+SpriteDataLen: equ $ - SpriteData
+
+PaletteData:
+ incbin "GFX/palette.dat"
+PaletteDataLen: equ $ - PaletteData