summaryrefslogtreecommitdiff
path: root/platform/javascript/engine.js
AgeCommit message (Collapse)Author
2018-03-27Fix engine.js startGame() when loading from directoryLeon Krause
2018-03-27Allow custom path when using engine.js preloadFile() with URLLeon Krause
2018-03-27Fix engine.js preloadFile() with directoriesLeon Krause
2018-03-27Expose Emscripten libs to engine.js discreetlyLeon Krause
2018-03-16Fix typo in engine.jsLeon Krause
2018-03-15Check only for WebGL 1.0, move test to HTML fileLeon Krause
Whether to use WebGL 1.0 or 2.0 can only be determined at runtime after reading project settings, so check for the lower version. The test is now in the HTML file, so if desired WebGL 2.0 can be checked early by changing the behaviour there.
2018-01-07Initialize WebGL context in OSLeon Krause
2017-11-19Change HTML5 start-up APILeon Krause
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().
2017-11-18Remove asm.js support from HTML5 platformLeon Krause
Since WebGL 2.0 is required, requiring WebAssembly support as well has little impact on compatibility.
2017-10-02Use primary WebAssembly.instantiate overloadLeon Krause
Previously WebAssembly.compile was used along with the secondary WebAssembly.instantiate overload. Using only the primary overload is recommended to get best performance.
2017-09-11HTML5 start-up overhaulLeon Krause
- 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)