Skip to content

Paperdomo101/WebDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raylib Web Demo

banner


Prerequisites

Download WASM build of Raylib

Download and Install Emscripten


Running the Demo

Open 'raylib-5.5_webassembly'. Copy raylib.h to 'include' and libraylib.a to 'include/web'

Set EMSDK_PATH and BROWSER in the makefile

Open a terminal at the project path, run make and enjoy the demo


Modifying the Demo

Change PROJECT_NAME, PROJECT_VERSION, BASE_WIDTH, BASE_HEIGHT in the makefile

Add build targets for other platforms in the makefile (more info here)

Customize the embed shell


Integration with itch.io

Install itch.io butler. Create an itch.io page for your game, set ITCH_USER and ITCH_PAGE in the makefile

Run make release_web to build and zip your game. Run make publish_web to upload directly to your itch.io page


Changelog

18/08/2025

+ added `CalibrateScreen()` in favor of variable `recalculate_screen_resolution`
* framerate is now calculated based on monitor refresh rate
* reordered functions for improved readability (hopefully)
* renamed `Init()` to `Load()`
+ added `clean` target
* moved `test_web` target to top so `make` automatically executes it
* changed default EMSDK_PATH to `~/Documents/emsdk`
- removed superfluous things including C/JS interop function `saveFileFromMEMFSToDisk()`
+ added changelog
* updated banner
* updated formatting

About

A web-embeddable Raylib project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors