From 3896db0ea50d1e91c29638d6db81a9b66b0c1ba8 Mon Sep 17 00:00:00 2001 From: KonAki Date: Mon, 12 Oct 2026 19:31:38 +0800 Subject: wire script into build.sh and readme --- README.md | 1 + build.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a2515f0..8f8cc60 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ The engine modules are a `.h` and a `.c` pair, they depend on each other a bit, | 2d | what any 2D game needs: a scrolling camera, frame animation, drawing frames of a sprite sheet | | fx | whole screen effects done on the pixels: fade to a colour, flash, shake and tone (adds 2d) | | particles | pooled particle emitters (sparks, dust, glows) and rain, snow and storm presets | +| script | event scripts: say, menus, switches, variables, jumps and calls as a flat list of commands, with the program doing the showing. what converters write to | | stage | sprites and pictures on a stage for visual novels and cutscenes: slots, layers above or below your text box, fades, moves, scale, rotation, blend modes, a background (or CG) that stretches, covers or fits and can pan and zoom (adds 2d) | | textbox | a text box for any game: wrapped pages, typewriter, name plate, a face inside, menus, a panel that can be a colour, an image or a nine patch (adds 2d, font) | | platformer | a box that runs and jumps through a tilemap, with coyote time and jump buffering (adds tile) | diff --git a/build.sh b/build.sh index 0bdd438..d3a235b 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 model 2d fx particles stage textbox platformer rpg 3d sector world" + echo "modules: font toml tile pack ui debug assets image audio mic model 2d fx particles script stage textbox platformer rpg 3d sector world" echo "platforms: native linux bsd windows" echo "targets: all run clean tools pack examples" exit 1 @@ -77,7 +77,7 @@ addobj() 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|stage|textbox|platformer|rpg|3d|sector|world) addobj "kon$m" ;; + font|toml|tile|pack|ui|debug|2d|fx|particles|script|stage|textbox|platformer|rpg|3d|sector|world) addobj "kon$m" ;; assets) addobj konassets ;; model) addobj konmodel; addobj konassets ;; image) addobj stb_image ;; -- cgit