summaryrefslogtreecommitdiff
path: root/platform/javascript/pre_wasm.js
diff options
context:
space:
mode:
authorLeon Krause <lk@leonkrause.com>2017-08-13 13:10:04 +0200
committerLeon Krause <lk@leonkrause.com>2017-09-11 20:56:29 +0200
commit4db801aaeac130a74197ab43e531ce2533414eb9 (patch)
tree65cb628baaea9b9c680557b41f603bba276306bf /platform/javascript/pre_wasm.js
parentb4ad899ef64df6e341a4cbe52a15109cd3d6b2eb (diff)
HTML5 start-up overhaul
- 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)
Diffstat (limited to 'platform/javascript/pre_wasm.js')
-rw-r--r--platform/javascript/pre_wasm.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/javascript/pre_wasm.js b/platform/javascript/pre_wasm.js
new file mode 100644
index 0000000000..be4383c8c9
--- /dev/null
+++ b/platform/javascript/pre_wasm.js
@@ -0,0 +1,3 @@
+var Engine = {
+ USING_WASM: true,
+ RuntimeEnvironment: function(Module) {