Updated Working for Web (HTML5) (markdown)

master
José Salavert Torres před 2 roky
rodič
revize
e1ac43294f
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. +3
    -1
      Working-for-Web-(HTML5).md

+ 3
- 1
Working-for-Web-(HTML5).md

@ -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

Načítá se…
Zrušit
Uložit