aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2026-10-13 09:56:30 +0200
committerNicholas Rodrigues Lordello <[email protected]>2026-10-13 09:56:30 +0200
commitb5cc8d759a09ad2754efb671dc1af12d52fc542e (patch)
tree8f2731fefaaa7b2afdfdbd80a768b72172b5a6c0 /Makefile
parente06434fd89345fdc4e931f6fa3904626d75097db (diff)
Added Debug Stats
We now print debug stats (ATM, just FPS) overlaying the actual game. We use the PICO-8 font to keep things consistent; I probable should choose a better color though...
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9435604..93d1b04 100644
--- a/Makefile
+++ b/Makefile
@@ -65,7 +65,8 @@ $(SYSTEM)/sysroot.h $(SYSTEM)/sysroot.c: $(TOOLS)/generate-sysroot \
$(SYSTEM)/pico8.data.pod \
$(SYSTEM)/pico8.wasm \
$(SYSTEM)/stub/pico8.wasm \
- $(SYSTEM)/unknown.p8.png
+ $(SYSTEM)/unknown.p8.png \
+ $(SYSTEM)/font.png
@ echo "TOOL\t$(SYSTEM)/sysroot.h $(SYSTEM)/sysroot.c"
@ $< $(SYSTEM)
@@ -83,6 +84,11 @@ $(SYSTEM)/%.p8.png: carts/%.p8
@ mkdir -p $(dir $@)
@ $(PICO8) $< -export $@ >/dev/null
+$(SYSTEM)/%.png: carts/%.p8
+ @ echo "PICO8\t$@"
+ @ mkdir -p $(dir $@)
+ @ $(PICO8) $< -export $@ >/dev/null
+
$(SYSTEM)/stub/%.wasm: stub/%.wat
@ echo "WAT2WASM\t$@"
@ mkdir -p $(dir $@)