summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonAki <konaki@anokonaki.org>2026-10-16 01:30:14 +0800
committerKonAki <konaki@anokonaki.org>2026-10-16 01:30:14 +0800
commit54372d111804916459418e3ff8fb6d9c9e036fb1 (patch)
treed319b924fe84c4782adfebdd9826192a921fbad4
parent7f76b57eb13bebb81b0e13875cf51114a2b9888c (diff)
wire rmfield into build.sh and readme
-rw-r--r--README.md1
-rwxr-xr-xbuild.sh5
2 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index f415a60..47ea4cd 100644
--- a/README.md
+++ b/README.md
@@ -55,6 +55,7 @@ The engine modules are a `.h` and a `.c` pair, they depend on each other a bit,
| 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) |
+| rmfield | the player and the events of an RPG Maker map walking around it: steps at the speed of the character, wandering and routes, what blocks what, and what starts an event by touch, action or autorun (adds rmmap) |
| 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 485ab71..720a105 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 rmtile rmdraw 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 rmfield 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|rmtile|rmdraw|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|rmfield|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 ;;
@@ -138,6 +138,7 @@ 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 " $modules " in *" rmfield "*) need rmmap ;; 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