JAI Sokol WASM example
This is a small project to demo how to use Jai + Sokol and output to WASM.
Notes:
- Jai only supports WASM64 at the moment, so we need the Memory64 extension for now. It's available as a feature flag in some browsers.
- I'm (unfortunately) using emscripten to compile the final wasm file so everything is still clunky.
- Sokol-jai: https://github.com/colinbellino/sokol-jai
How to build?
- Run
jai first.jai, which should output in thedist/folder. - Serve the
dist/folder with any server you want (any tool that can app serve static assets should work). - Open in a browser. (http://127.0.0.1:8080 for example)
Languages
C
94.1%
Objective-C
4.2%
GLSL
1.1%
Shell
0.5%