~nytpu/ankano unlisted

a19791a0bdfd717bc78be5a5aaad9a0c232fba0c — nytpu 4 months ago ff090c0
use aseprite cli to compile spritesheets directly from gfx
5 files changed, 5 insertions(+), 1 deletions(-)

M Makefile
D src/res/font.png
D src/res/game_map.png
D src/res/game_map.tilemap
D src/res/spritemap.png
M Makefile => Makefile +5 -1
@@ 13,6 13,7 @@ BINDIR := build
OBJDIR := obj
DEPDIR := dep
RESDIR := res
GFXDIR := gfx

# Program constants
MKDIR  := $(shell which mkdir)


@@ 50,6 51,9 @@ include project.mk
# "Source" assets can thus be safely stored there without `make clean` removing them
VPATH := $(SRCDIR)

$(RESDIR)/%.png: $(GFXDIR)/%.aseprite
	aseprite -b $< --save-as $@

$(RESDIR)/%.1bpp: $(RESDIR)/%.png
	@$(MKDIR) -p $(@D)
	$(RGBGFX) -d 1 -o $@ $<


@@ 59,7 63,7 @@ $(RESDIR)/%.2bpp: $(RESDIR)/%.png
	$(RGBGFX) -t $@.tilemap -u -o $@ $<

$(RESDIR)/%.tilemap: $(RESDIR)/%.2bpp
	


# Define how to compress files using the PackBits16 codec
# Compressor script requires Python 3

D src/res/font.png => src/res/font.png +0 -0
D src/res/game_map.png => src/res/game_map.png +0 -0
D src/res/game_map.tilemap => src/res/game_map.tilemap +0 -0
D src/res/spritemap.png => src/res/spritemap.png +0 -0