Skip to content

fredericcambon/snake-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snake-wasm

Snake in C+ for WebAssembly

This is a primitive snake in C++ish to test WebAssembly

Getting Started

Installing

You'll need emscripten to compile the program

Compiling

emcc web.cc snake.cc base.cc -s USE_SDL=2 -s ASSERTIONS=1 -O3 -o index.html

You'll then need a http server to view the result, you can use python3 -m http.server.

Examples

http://grun7.com/snake-wasm/

Releases

No releases published

Packages

No packages published

Languages