Log 7



──────────────┤ View On GitHub ├──────────────

1. Fix emscripten build

The emscripten build is fixed but feels somewhat hacky. I don’t like the use of global variables, but I’m not sure how else to get around that. Also the casting of the Engine every time to the main_loop is an overhead that shouldn’t really be there. I expect to update this in the future. Currently the web build is only supported as an experimental feature. 

The build, for some reason, doesn't play when built via the github actions. However, building locally it works fine. Looks like there might be something wrong with the device setup in github.

2. Switch to Cereal

Started the switch to Cereal from the tcod zip files. Everything seems to work on the computer with JSON encoding, though I'd rather have it working with binary. The web version is not supporting saving. Need to add access to the file system, hoping to have that done today as it seems trivial

3. Support saving in the browser

Next up is to add support for saving in the browser as well as in a binary format.

Files

libtcod-vcpkg-template-b222c8b-windows.x64.zip 1 MB
Nov 18, 2023
libtcod-vcpkg-template-b222c8b-macos.x64.tar.gz 1 MB
Nov 18, 2023
libtcod-vcpkg-template-b222c8b-linux.x64.tar.gz 1 MB
Nov 18, 2023

Get Yet Another Roguelike tutorial with C++ and Libtcod

Leave a comment

Log in with itch.io to leave a comment.