Skip to content

virtuoso/clap

Repository files navigation

CLAP game engine

simple-build

Source code and submodules

Checkout repository and modules

git submodule update --init --recursive

Local build (Macos)

Install dependencies

brew install cmake glew zlib libpng libogg libvorbis freetype glfw shaderc spirv-cross

Build

./configure.sh
./build.sh

Run

build/debug/tools/server/server

And run the demo

build/test/demo/ldjam56/ldjam56

Wasm build

Install all dependencies needed for native build

Emscripten

Download and install Emscripten

Create build_config file

emsdk_env_path=<path to installed emscripten SDK>
www_dir=<path to www build folder where static content will be build>

For example:

emsdk_env_path=${HOME}/src/game/emsdk/emsdk_env.sh
www_dir=${HOME}/src/game/www

Run local web server

For example, using python3 embedded httpd server:

python3 -m http.server -d ${HOME}/src/game/www