Exemple: list all json files from current directory and print the difference with updated jsons from updated/ directory
for user in `ls updated-users`
do
# print file name
echo $user
# simple
diff <(jq -S . users/$user) <(jq -S . updated-users/$user)
# or full on one side and the diff on the other side
# diff -y --left-column <(jq -S . users/$user) <(jq -S . updated-users/$user)
# or full on one side and the diff on the other side, colored
# diff -y --left-column --color <(jq -S . users/$user) <(jq -S . updated-users/$user)
done
I made a Zelda II alike world with a big map on top view and some dungeons in side view. Permanent world, only the monsters are reset between dungeons / starts.
The limit was way overdue before I could do all I wanted so I’m linking both version here, the entry for the compo and the updated / finalised one.
cheat: editable player_state.json after first execution
==============================================
How to build: need gcc on linux and gcc + msys / cygwin on windows
mkdir-p KheldaII
mkdir-p KheldaII/LIB
mkdir-p KheldaII/Src/
cd KheldaII/LIB
git clone https://framagit.org/GullRaDriel/nilorea-library.git .
cd ../Src/
git clone https://framagit.org/GullRaDriel/krampushack2021-kheldaii.git
cd https://framagit.org/GullRaDriel/krampushack2021-kheldaii.git
make