summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md3
-rw-r--r--[-rwxr-xr-x]build.sh6
2 files changed, 5 insertions, 4 deletions
diff --git a/README.md b/README.md
index 3397cbc..7ce2bd4 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,8 @@ The engine modules are a `.h` and a `.c` pair, they depend on each other a bit,
| 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 |
| battle | turn based fights with RPG Maker style rules: stats, states, skills with damage formulas, hit and critical rolls, elements, turn order, escaping. nothing drawn, you show the results |
-| party | actors with classes and levels, equipment, the party, gold and the bag, shops, and using items from the menu (adds battle) |
+| party | actors with classes and levels, equipment, the party, gold and the bag, shops, and using items from the menu (adds battle and save) |
+| save | save files: tagged chunks with a checksum, read and written in a buffer, each module saves its own part; the party saves with it (party adds this) |
| 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 658cf06..6746c49 100755..100644
--- 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 script battle party stage textbox platformer rpg 3d sector world"
+ echo "modules: font toml tile pack ui debug assets image audio mic model 2d fx particles 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
@@ -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|script|battle|party|stage|textbox|platformer|rpg|3d|sector|world) addobj "kon$m" ;;
+ font|toml|tile|pack|ui|debug|2d|fx|particles|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 ;;
@@ -111,7 +111,7 @@ case " $modules " in *" stage "*|*" fx "*) need 2d ;; esac
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 ;; esac
+case " $modules " in *" party "*) need battle; need save ;; 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