This repository contains a game developed using Swift and WebAssembly, inspired by the excellent book Game Development with Rust and WebAssembly. The original source code, implemented in Rust, can be found at this repository.
You can play the game online at swift-walk-the-dog, hosted on GitHub Pages.
To start development, execute the dev.sh script. This will build the project and launch a local server that hosts the WebAssembly executable along with a corresponding JavaScript entrypoint to load the game.
To create a release build, run the release.sh script. This will build the project and bundle all the assets, including the WebAssembly file, into the /docs directory. This directory is configured as the source directory for GitHub Pages hosting.