a4ca718070f55142129134a5c6a5345057f46b97
Replaces three independently hand-rolled battlefighter_t JSON readers/ writers (party.jsonc roster loading, BATTLE_START enemy definitions, and the v1 save-file party member format) with one generic pair in battlefighter.c: battleFighterParse(fighter, obj) and its inverse battleFighterSerialize(fighter, doc). Covers team/controller/status (optional, default ally/player/normal), the 7 base stats (required), current health/mp (optional, default to max), and an optional abilities name array. - party.c: partyInit now parses each roster member via battleFighterParse directly, dropping the old partyParseStats/partyParseStatField. - cutscenebattlestart.c/.h: cutscenebattlestartenemy_t now embeds a full battlefighter_t, parsed once at Load time; Start just copies it into the enemy pool instead of re-initializing. battletest.jsonc's enemies are now flat (dropped the "stats" wrapper) to match. - saveslotver1.c/.h: rewritten in place to use the shared parser/ serializer, changing the v1 on-disk field names/shape (no migration - acceptable pre-release, documented in saveslotver1.h). Co-Authored-By: Claude Sonnet 5 <[email protected]>
Dusk
RPG Game Project, small and able to run on a PSP.
Building
Each build target has different requirements. You can take a look at the git workflow to see how the builds are done for each target. In addition, for accessing the editor and building the game on your host system, install the following packages, depending on your system;
Fedora;
sudo dnf install git make gcc cmake python python-polib python3-pillow python3-dotenv python3-numpy python-qt5 python3-pyopengl SDL2-devel zlib-devel libzip-devel bzip2-devel openssl-devel lzma-sdk-devel xz xz-devel lua-devel libmad-devel
libmad-devel (used for MP3 decoding) is GPL-licensed and ships in the
RPM Fusion free repository rather than Fedora's
base repos - make sure RPM Fusion is enabled first.
Ubuntu;
sudo apt-get install git build-essential gcc python python-polib python3-pillow python3-dotenv python3-numpy python3-pyqt5 python3-opengl libmad0-dev
Arch Linux;
sudo pacman -S git base-devel gcc python python-polib python-pillow python-dotenv python-numpy python-pyqt5 python-opengl libmad
Languages
C
89.7%
JavaScript
3.5%
CMake
3.1%
Python
2.1%
HTML
0.8%
Other
0.7%