mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Updated Working for Web (HTML5) (markdown)
@ -11,7 +11,7 @@ The complete process to compile for web is detailed below. The main steps to fol
|
||||
3. [Setup raylib game for web](#3-setup-raylib-game-for-web)
|
||||
4. [Compile raylib game for web](#4-compile-raylib-game-for-web)
|
||||
5. [Test raylib game on web](#5-test-raylib-game-on-web)
|
||||
6. [Upload raylib web game to itch.io](#6-upload-raylib-web-game-to-itch-io)
|
||||
6. [Upload raylib web game to itch.io](#6-upload-raylib-web-game-to-itchio)
|
||||
|
||||
Note that it's VERY important to understand the different steps of the process. If you expect to find an already setup solution, ready to use out-of-the-box, it's very probable that it fails at some point. So, understanding the process is crucial to be able to configure web compilation with ANY build system.
|
||||
|
||||
@ -274,15 +274,15 @@ emrun project_name.html
|
||||
|
||||
## 6. Upload raylib web game to itch.io
|
||||
|
||||
To upload a raylib web game to itch.io you need to rename `project_name.html` to `index.html` and compress into `game.zip` the files generated on compilation:
|
||||
To upload a raylib web game to itch.io you need to rename `project_name.html` to `index.html` and compress into `project_name.zip` the files generated on compilation:
|
||||
```
|
||||
index.html
|
||||
game.wasm
|
||||
game.js
|
||||
game.data
|
||||
game.mem
|
||||
project_name.wasm
|
||||
project_name.js
|
||||
project_name.data
|
||||
project_name.mem
|
||||
```
|
||||
Upload the `game.zip` to a new itch.io project and select the option for the file: `This file will be played in the browser`.
|
||||
Upload the `project_name.zip` to a new itch.io project and select the option for the file: `This file will be played in the browser`.
|
||||
You have some additional config options on the itch.io game section: `Embed options`
|
||||
|
||||
When saving the page and entering your itch.io game page, it should be playable!
|
||||
|
||||
Reference in New Issue
Block a user