From c3588ff8fb40470af70ca409bcd66b2d5675d04b Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 10 Jan 2022 13:02:11 +0100 Subject: [PATCH] Updated Working for Web (HTML5) (markdown) --- Working-for-Web-(HTML5).md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Working-for-Web-(HTML5).md b/Working-for-Web-(HTML5).md index b041eaa..2a786dd 100644 --- a/Working-for-Web-(HTML5).md +++ b/Working-for-Web-(HTML5).md @@ -175,12 +175,12 @@ raylib examples [`Makefile`](https://github.com/raysan5/raylib/blob/master/examp To compile raylib game directly from the command line, those are the commands to run: -* Without `ASINCIFY` +* Without `ASYNCIFY` ``` emcc -o game.html game.c -Os -Wall ./path-to/libraylib.a -I. -Ipath-to-raylib-h -L. -Lpath-to-libraylib-a -s USE_GLFW=3 --shell-file path-to/shell.html -DPLATFORM_WEB ``` -* With `ASINCIFY` +* With `ASYNCIFY` ``` emcc -o game.html game.c -Os -Wall ./path-to/libraylib.a -I. -Ipath-to-raylib-h -L. -Lpath-to-libraylib-a -s USE_GLFW=3 -s ASYNCIFY --shell-file path-to/shell.html -DPLATFORM_WEB ``` @@ -193,7 +193,7 @@ The compilation line is quite standard, similar to any other compiler and platfo -Ipath // Include path to look for additional #include .h files (if required) -Lpath // Library path to look for additional library .a files (if required) -s USE_GLFW=3 // We tell the linker that the game/library uses GLFW3 library internally, it must be linked automatically (emscripten provides the implementation) - -s ASINCIFY // Add this flag ONLY in case we are using ASYNCIFY code + -s ASYNCIFY // Add this flag ONLY in case we are using ASYNCIFY code --shell-file path-to/shell.html // All webs need a "shell" structure to load and run the game, by default emscripten has a `shell.html` but we can provide or own ```