From e1ac43294fb0fa1ef0f0fbfc83b8ea50af035526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Salavert=20Torres?= Date: Wed, 26 Apr 2023 17:47:48 +0200 Subject: [PATCH] Updated Working for Web (HTML5) (markdown) --- Working-for-Web-(HTML5).md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Working-for-Web-(HTML5).md b/Working-for-Web-(HTML5).md index a062cfc..185a372 100644 --- a/Working-for-Web-(HTML5).md +++ b/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