Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.45 KB

BUILDING-JAVASCRIPT.MD

File metadata and controls

28 lines (22 loc) · 1.45 KB

Building for javascript

FontAtlas

  • Font Atlas Builder
  • Creates a font texture atlas, written in C. Uses freetype library.
  • Requires a emscripten to compile.
  • The source code is located in the fontatlas-javascript folder.
  • Used only in the Javascript version.
  • To compile open MSYS2 MinGW x64 command prompt inside of the folder and run make build-release creates a WASM file for the Javascript version.
  • copy the module_fontatlas.wasm and module_fontatlas.js files to /src-javascript/engine/externals folder.
  • Project for VSCode available.

LuaScript

  • Lua scripting
  • Provides bindings to LUA required to run scripts.
  • Requires a emscripten to compile.
  • The source code is located in the luascript-javascript folder.
  • Used only in the Javascript version.
  • To compile open MSYS2 MinGW x64 command prompt inside of the folder and run make build-release, this creates a WASM file.
  • copy the lua.wasm and lua.js files to /src-javascript/engine/externals folder.
  • Project for VSCode available.

Engine

  • Already written in javascript, there nothing to compile.
  • The code is on /src-javascript/engine.