summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonAki <konaki@anokonaki.org>2026-10-15 14:57:24 +0800
committerKonAki <konaki@anokonaki.org>2026-10-15 14:57:24 +0800
commit3dbb48bb7ec9f52c01ac172f8d75e6d0126d244f (patch)
tree5d9b22a057157dd9d22a913501d877cc26441c8a
parent2211a7633fef48a0affcd27fe309ce1c26a06b04 (diff)
wire rmtile and rmdraw into build.sh and readme
-rw-r--r--README.md4
-rwxr-xr-xbuild.sh5
2 files changed, 6 insertions, 3 deletions
diff --git a/README.md b/README.md
index 1e32e22..f415a60 100644
--- a/README.md
+++ b/README.md
@@ -52,7 +52,9 @@ The engine modules are a `.h` and a `.c` pair, they depend on each other a bit,
| audio | sound playing, looping, pitch, buses, fades, positional sound, music crossfades |
| mic | microphone level, talking detection, last few seconds as a sound |
| rm | one host function for the RPG Maker commands the converters write: sound, screen effects and pictures, for whichever of those modules are built |
-| rmmap | the const data shapes mzmap writes for RPG Maker maps, events, pages and tilesets, which page an event shows, reading a tile |
+| rmmap | the const data shapes mzmap writes for RPG Maker maps, events, pages and tilesets, which page an event shows, reading a tile, and walking: passability, terrain tags, regions |
+| rmtile | where the pieces of an RPG Maker tile are on its sheet: autotile shapes for floors, walls and waterfalls, animation frames (adds rmmap) |
+| rmdraw | draws an RPG Maker map from its tileset sheets: layers, shadows, tiles that go above the actors, looping maps (adds rmmap, rmtile) |
| sound | RPG Maker style audio channels: BGM, BGS, ME and SE, fades, a saved BGM, loop points (adds audio) |
| model | glTF models and animation, converted to my own `.kmdl` format |
| ui | immediate mode ui |
diff --git a/build.sh b/build.sh
index b04c874..485ab71 100755
--- a/build.sh
+++ b/build.sh
@@ -12,7 +12,7 @@ developer=0
usage()
{
echo "usage: build.sh [-d] [-D] [-p platform] [-m module,...] [-o objdir] [target ...]"
- echo "modules: font toml tile pack ui debug assets image audio mic sound model 2d fx particles picture rm rmmap script battle party save stage textbox platformer rpg 3d sector world"
+ echo "modules: font toml tile pack ui debug assets image audio mic sound model 2d fx particles picture rm rmmap rmtile rmdraw script battle party save stage textbox platformer rpg 3d sector world"
echo "platforms: native linux bsd windows"
echo "targets: all run clean tools pack examples"
exit 1
@@ -97,7 +97,7 @@ esac
for m in $modules; do
DEFS="$DEFS -DKON_MODULE_$(echo "$m" | tr 'a-z' 'A-Z')"
case $m in
- font|toml|tile|pack|ui|debug|2d|fx|particles|picture|sound|rm|rmmap|script|battle|party|save|stage|textbox|platformer|rpg|3d|sector|world) addobj "kon$m" ;;
+ font|toml|tile|pack|ui|debug|2d|fx|particles|picture|sound|rm|rmmap|rmtile|rmdraw|script|battle|party|save|stage|textbox|platformer|rpg|3d|sector|world) addobj "kon$m" ;;
assets) addobj konassets ;;
model) addobj konmodel; addobj konassets ;;
image) addobj stb_image ;;
@@ -137,6 +137,7 @@ case " $modules " in *" textbox "*) need 2d; need font ;; esac
case " $modules " in *" 3d "*) need tile ;; esac
case " $modules " in *" model "*) need assets ;; esac
case " $modules " in *" party "*) need battle; need save ;; esac
+case " $modules " in *" rmdraw "*) need rmmap; need rmtile ;; esac
case " $DEFS " in *" -DKON_MODULE_ASSETS "*) need pack ;; esac
# the 3D renderer is only compiled when a module that draws in 3D is picked