Download and Install Emscripten
Open 'raylib-5.0_webassembly'. Copy raylib.h
to 'include' and libraylib.a
to 'include/web'
Set EMSDK_PATH
and BROWSER
in the makefile
Run make test_web
and enjoy 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
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