aboutsummaryrefslogtreecommitdiff
path: root/platform/javascript/engine.js
Commit message (Collapse)AuthorAgeFilesLines
* Fix keyboard focus lock-out with HTML5 canvas in iframeLeon Krause2018-05-131-0/+4
| | | | (cherry picked from commit 9080e96bc81328e658a03e2cd248c06ddbf9f2ec)
* Fix engine.js startGame() when loading from directoryLeon Krause2018-04-281-3/+14
| | | | (cherry picked from commit 3014e48ec5a985b9d143ba27b91e32b933dcfdad)
* Allow custom path when using engine.js preloadFile() with URLLeon Krause2018-04-281-3/+3
| | | | (cherry picked from commit d373029382208226a55ddfc028a3261e0dc8279b)
* Fix engine.js preloadFile() with directoriesLeon Krause2018-04-281-3/+13
| | | | (cherry picked from commit 6f1bddf4b5e6716f59bcbd9a7587b6d556251ef9)
* Expose Emscripten libs to engine.js discreetlyLeon Krause2018-04-281-2/+5
| | | | (cherry picked from commit 63c7fc6358343c3de6cfaa40436063646eb8b7a1)
* Initialize WebGL context in OSLeon Krause2018-01-071-3/+7
|
* Change HTML5 start-up APILeon Krause2017-11-191-59/+105
| | | | | | | | Rename engine.start() to startGame(), new start() takes string arguments handed directly to main(). Rename Engine.loadEngine() to load(). Add setLocale(), setResizeCanvasOnStart(), setExecutableName() and preloadFile().
* Remove asm.js support from HTML5 platformLeon Krause2017-11-181-53/+6
| | | | | Since WebGL 2.0 is required, requiring WebAssembly support as well has little impact on compatibility.
* Use primary WebAssembly.instantiate overloadLeon Krause2017-10-021-3/+3
| | | | | | Previously WebAssembly.compile was used along with the secondary WebAssembly.instantiate overload. Using only the primary overload is recommended to get best performance.
* HTML5 start-up overhaulLeon Krause2017-09-111-0/+366
- Implement promise-based JS interface for custom HTML page integration - Add download progress callback - Add progress bar and indeterminate spinner to default HTML page - Try downloading files multiple times when failing - Get rid of godotfs.js - Separate steps for engine initialization, game initialization and game start - Allow multiple games on one HTML page - Substitution placeholders only used in .html file - Placeholders renamed: $GODOT_BASE => $GODOT_BASENAME, $GODOT_TMEM -> $GODOT_TOTAL_MEMORY - Emscripten Module is now Engine.RuntimeEnvironment (no longer a global)