Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 655 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 655 Bytes

life-game

Life game with web assembly compiled from C++

https://d0iasm.github.io/life-game.cpp/

Compile

# C++ using SDL
$ emcc -std=c++11 hoge.cpp -s WASM=1 -s USE_SDL=2 -O3 -o hoge.js

# C++
$ emcc hoge.cpp -std=c++14 -s WASM=1 -o hoge.html

# C
$ emcc hoge.c -s WASM=1 -o hoge.html 

Run

$ emrun hoge.html

Required

To enable emscripten commands in your current directory

$ source <path-to-emsdk>/emsdk_env.sh

References