add new maps, persistent storage, music toggle button

This commit is contained in:
2026-11-21 14:56:05 +03:00
parent bc7b137adb
commit 5b473d15f2
24 changed files with 2142 additions and 9 deletions

View File

@@ -13,3 +13,27 @@ Currently only Linux and macOS are supported
`make` builds native executable
`make web serve` builds emscripten and runs local python server
## Maps
raytmx only supports finite Tiled maps. Infinite maps use `<chunk>`
elements that the bundled loader cannot read and can crash it. The game
currently loads `res/tilemaps/start.tmx`, which is finite.
If you have an infinite map, convert it with:
`tools/tmx_to_finite.py <input.tmx> -o <output.tmx>`
Keep your edited finite map in Tiled; re-run the converter only when you
want to flatten a newer infinite source map.
## Settings and saves
Native builds keep settings in
`$XDG_CONFIG_HOME/catch-phase/settings.conf`, falling back to
`$HOME/.config/catch-phase/settings.conf`. Save files should use the same
directory.
Web builds mount an IndexedDB-backed filesystem at `/persist` and keep
`/persist/settings.conf` there, so it survives a page reload. Future save
files should go under `/persist` as well.