Skip to content

Latest commit

 

History

History
74 lines (48 loc) · 1.22 KB

BUILDING.md

File metadata and controls

74 lines (48 loc) · 1.22 KB

Project Setup

This guide provides a simple walkthrough for setting up and building the project. Follow the instructions below to get started.

Python Environment & Virtualenv

Set up the Python virtual environment:

uv venv
source .venv/bin/activate

Conan

Install Conan, and configure it:

uv pip install conan
conan profile detect --force

Add the WebAssembly Profile

Create a Conan profile for WebAssembly:

cat > ~/.conan2/profiles/webassembly <<EOF
include(default)

[settings]
arch=wasm
os=Emscripten

[tool_requires]
*: emsdk/3.1.73
EOF

Configure & Build

Run the command:

make -f Makefile.webassembly release

Clone a Game Repository

Clone the game repository into a local folder named sandbox:

gh repo clone willtobyte/slime sandbox

Clone the Playground Web Application

Clone the playground web application repository:

gh repo clone willtobyte/run

Run the Application

Note: Ensure Docker is running. If Docker is not installed, consider installing OrbStack.

Start the application:

make run

Finally, open localhost:3000/playground in your browser.