This is a small toy I wrote to experiment with WASM.
The code in this repo is under the MIT License. raylib (linked as a git submodule) is covered under it's own permissive license.
Sounds were generated with jsfxr.
Tittat uses the fantastic raylib. It's linked as a git submodule and can be retrieved using:
git submodule update --init --recursive
To build you'll need CMake, MSVC (only when building for Windows), and emscripten (when building for web).
I use the simple http-server when testing the web build.
There is a minimal HTML file needed to display the game and prevent accidental scrolling in a browser here: shell.html.
I've only tested on win32 and web platforms. Everything1 is written to be portable, and porting to other platforms should be straight forward2. The raylib documentation has some good info on building for different platforms.
Once you've got raylib by updating submodules and install the necessary tools (see above) you should be able to use one of the build_*.bat
files to configure, build, and run Tittat. For example:
build_win32 debug configure
build_win32 debug build
build_win32 debug run
build_web.bat
assumes the environment has been setup for emscripten with emsdk_env.bat
or something equivalent. build_web BUILD_TYPE run
tries to run http-server
rooting in the build targets build directory.
build_win32.bat
assumes the environment has been setup to use MSVC.