Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/colinbellino/jai_sokol_wasm_playground
https://github.com/colinbellino/jai_sokol_wasm_playground
jai sokol wasm
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/colinbellino/jai_sokol_wasm_playground
- Owner: colinbellino
- Created: 2024-10-16T15:47:45.000Z (30 days ago)
- Default Branch: main
- Last Pushed: 2024-10-16T16:12:35.000Z (30 days ago)
- Last Synced: 2024-10-19T12:42:24.404Z (27 days ago)
- Topics: jai, sokol, wasm
- Language: C
- Homepage: https://colinbellino.github.io/jai_sokol_wasm_playground/dist
- Size: 4.51 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/WebAssembly/memory64/blob/main/proposals/memory64/Overview.md) extension for now. It's available as a feature flag in [some browsers](https://webassembly.org/features/#table-row-memory64).
- I'm (unfortunately) using [emscripten](https://emscripten.org) 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 the `dist/` 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)