mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Updated Working for Web (HTML5) (markdown)
@ -153,7 +153,9 @@ endif ()
|
||||
|
||||
## 3. Setup raylib game for web
|
||||
|
||||
To setup your game to compile for web there are two possible options:
|
||||
At this point, if you optionally want to compile the provided examples for the web, there is another Makefile to configure. Make sure all paths to emscripten installation (`EMSDK_PATH`) and emscripten required tools (Clang, Python, Node) are correctly configured on `raylib/examples/Makefile`, you must verify [these lines](https://github.com/raysan5/raylib/blob/master/examples/Makefile#L134). Then start up Notepad++ for raylib, open the `raylib/examples/Makefile` file, press F6, choose `raylib_makefile`, verify that in the script the web platform is set (`SET PLATFORM=PLATFORM_WEB`) and click OK to run the script. It will compile all the examples. It will compile all the examples for the web.
|
||||
|
||||
To setup your own game to compile for web there are two possible options:
|
||||
|
||||
### 3.1 Avoid raylib `while(!WindowShouldClose())` loop
|
||||
|
||||
|
||||
Reference in New Issue
Block a user