Skip to content

zf3/raylib-games-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web Games using raylib - Sample Code

Sample code that shows how games developed with the raylib engine can be compiled to WebAssembly and deployed on the Web, using Emscripten.

This is based on Ian's Raylib Practices. The games are written in C++ and very simple (are 100-400 lines of code each).

Instructions

Assuming you have Python 3, Emscripten and Cmake installed on MacOS or Linux. You can build everything simply with,

./build.sh

Then you can serve the games with,

cd build/web
python3 -m http.server

Direct your browser to http://localhost:8000 to view the games.

arkanoid:

For instructions to install Emscripten on M1 Mac and build raylib for WebAssembly, see INSTALL.md

About

Simple games using raylib in C++, playable in browsers through WebAssembly / Emscripten.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages