Skip to content

d0iasm/life-game.cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Game of Life with WebAssembly compiled from C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published