fix typos

master
gtrxAC 3 年前
父节点
当前提交
d8b6b98e3f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      Working-for-Web-(HTML5).md

+ 2
- 2
Working-for-Web-(HTML5).md

@ -1,6 +1,6 @@
raylib C code can be compiled to [WebAssembly](https://en.wikipedia.org/wiki/WebAssembly) to run on Web. Compilation process is very similar to the one used for desktop platforms with `gcc` compiler but it requires a different toolchain: [emscripten SDK](https://emscripten.org/).
`emscripten` provides a set of tools to compile C code to WebAssembly, the main tool provided is the `emcc` compiler. `emcc` is actuallya direct replacement for `gcc`, so, anyone with experience compiling code directly in the command-line should not have much trouble to use `emcc`.
`emscripten` provides a set of tools to compile C code to WebAssembly, the main tool provided is the `emcc` compiler. `emcc` is actually a direct replacement for `gcc`, so, anyone with experience compiling code directly in the command-line should not have much trouble to use `emcc`.
There are some additional compilation flags for `emcc` compilation and code linkage, so, a `Makefile` is provided in [`raylib/src/Makefile`](https://github.com/raysan5/raylib/blob/master/src/Makefile) to simplify the compilation process, it only requires defining `PLATFORM_WEB` to use the correct compilation flags.
@ -73,7 +73,7 @@ From command-line, the following line must be called:
NOTE: `mingw32-make.exe` is provided by MinGW toolchain, other compiler toolchains could provide similar implementations, usually called just `make.exe`. In any case, `make` must be accessible from command-line to execute it.
If you are using the provided raylib installer with Notepad++, it comes with a Notepad++ script ready to compile raylib library using makefile, the script configures required paths and calls required `Makefile`. To do this, start up Notepad++ for raylib, open the `raylib.h` file, press F6, choose `raylib_makefile`, verify that in the script web platof is set (`SET PLATFORM=PLATFORM_WEB`) and click OK to run the script.
If you are using the provided raylib installer with Notepad++, it comes with a Notepad++ script ready to compile raylib library using makefile, the script configures required paths and calls required `Makefile`. To do this, start up Notepad++ for raylib, open the `raylib.h` 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.
* For Linux/macOS users :

正在加载...
取消
保存