Skip to content

Ideas around a wasm runtime for raylib (to make raylib games in js & browser)

License

Notifications You must be signed in to change notification settings

konsumer/raylib-wasm

Repository files navigation

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 in your project to get started. Have a look at basic.html to see how to use it.

You can also use it directly in a codepen for quick demos and such.

It is also provided via this CDN link:

<script type="module" src="https://konsumer.js.org/raylib-wasm/raylib.js"></script>

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

About

Ideas around a wasm runtime for raylib (to make raylib games in js & browser)

Resources

License

Stars

Watchers

Forks

Packages

No packages published