Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Filyus/raylib-wasm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

# run local development web-server
npm start

It live-reloads, so it can be a great way to prototype some raylib code, even for other languages/platforms.

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://raylib.surge.sh/raylib.js"></script>

development

This is not needed for regular use, but here is how I created the wasm/wrapper, which requires docker:

npm run build

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 80.4%
  • GLSL 16.9%
  • HTML 1.7%
  • Other 1.0%