https://github.com/konsumer/raylib-wasm
Ideas around a wasm runtime for raylib (to make raylib games in js & browser)
https://github.com/konsumer/raylib-wasm
Last synced: over 1 year ago
JSON representation
Ideas around a wasm runtime for raylib (to make raylib games in js & browser)
- Host: GitHub
- URL: https://github.com/konsumer/raylib-wasm
- Owner: konsumer
- License: mit
- Created: 2023-06-21T02:33:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-19T10:13:22.000Z (about 2 years ago)
- Last Synced: 2024-10-19T21:45:26.390Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://konsumer.js.org/raylib-wasm/
- Size: 35.5 MB
- Stars: 24
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is the start of some ideas about making raylib games in JS for the web. It includes raylib 4.5.0.
### usage
You can include [raylib.js](https://konsumer.js.org/raylib-wasm/raylib.js) in your project to get started. Have a look at [basic.html](public/basic.html) to see how to use it.
You can also use it directly in [a codepen](https://codepen.io/konsumer/pen/NWEdxZq?editors=1000) for quick demos and such.
It is also provided via this CDN link:
```html
```
You can also install for a bundler with `npm i raylib-wasm`
### development
You probably do not need to do this. Here is how I created the wasm/wrapper. Only do this, if you are actually working on the library:
```
# build each part from scratch
npm run build
# run local development web-server
npm start
```