summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKonAki <konaki@anokonaki.org>2026-10-12 03:25:20 +0800
committerKonAki <konaki@anokonaki.org>2026-10-12 03:25:20 +0800
commitca1f5cd724644aee01d01b4d12d52f8893e01e54 (patch)
tree676cc0d8d3a32f3192c6d6397860e7597d5cb8d9 /examples
parentdbe7d0e0eeeabf6a4df16ef98d0a1f8d53b62d8b (diff)
split platformer out of 2d so 2d is only camera and animation
Diffstat (limited to 'examples')
-rw-r--r--examples/platform.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/platform.c b/examples/platform.c
index 1ac48fb..b6f65ea 100644
--- a/examples/platform.c
+++ b/examples/platform.c
@@ -1,7 +1,7 @@
/*
* platform: a box that runs and jumps around a tilemap with a camera that follows it, and a ray that follows the mouse
*
- * build: ./build.sh -d -m 2d,font obj/platform
+ * build: ./build.sh -d -m 2d,platformer,font obj/platform
* run: obj/platform
*
* left and right or a and d run, space or up jumps. the line from the box to the mouse stops at the first solid tile
@@ -14,9 +14,10 @@
#include "konprogram.h"
#include "kontile.h"
#include "kon2d.h"
+#include "konplatformer.h"
-#if !defined(KON_MODULE_2D) || !defined(KON_MODULE_TILE) || !defined(KON_MODULE_FONT)
-#error "build with: ./build.sh -d -m 2d,font obj/platform"
+#if !defined(KON_MODULE_2D) || !defined(KON_MODULE_PLATFORMER) || !defined(KON_MODULE_TILE) || !defined(KON_MODULE_FONT)
+#error "build with: ./build.sh -d -m 2d,platformer,font obj/platform"
#endif
#define TILE 16