-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,68 @@ | ||
# CLAP game engine | ||
|
||
![simple-build](https://github.com/virtuoso/clap/actions/workflows/simple-build.yml/badge.svg?branch=main) | ||
|
||
## Source code and submodules | ||
|
||
Checkout repository and modules | ||
|
||
```sh | ||
git submodule update --init --recursive | ||
``` | ||
|
||
## Local build (Macos) | ||
|
||
### Install dependencies | ||
|
||
```sh | ||
brew install cmake glew zlib libpng libogg libvorbis freetype glfw | ||
``` | ||
|
||
### Build | ||
|
||
```sh | ||
./configure.sh | ||
./build.sh | ||
``` | ||
|
||
### Run | ||
|
||
```sh | ||
build/debug/tools/server/server | ||
``` | ||
|
||
And run the demo | ||
|
||
```sh | ||
build/test/demo/ldjam52/ldjam52 | ||
``` | ||
|
||
## Wasm build | ||
|
||
Install all dependencies needed for native build | ||
|
||
### Emscripten | ||
|
||
Download and install [Emscripten](https://emscripten.org/docs/getting_started/downloads.html) | ||
|
||
### Create build_config file | ||
|
||
```sh | ||
emsdk_env_path=<path to installed emscripten SDK> | ||
www_dir=<path to www build folder where static content will be build> | ||
``` | ||
|
||
For example: | ||
|
||
```sh | ||
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: | ||
|
||
```sh | ||
python3 -m http.server -d ${HOME}/src/game/www | ||
``` |