From 35adf718cfdb4950177f645b30340d93dc2499bf Mon Sep 17 00:00:00 2001 From: Leon Krause Date: Sun, 19 Nov 2017 15:30:09 +0100 Subject: [PATCH] Change HTML5 start-up API 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(). --- misc/dist/html/default.html | 25 ++-- platform/javascript/detect.py | 11 +- platform/javascript/engine.js | 164 +++++++++++++++--------- platform/javascript/javascript_main.cpp | 1 - platform/javascript/os_javascript.cpp | 30 ++--- 5 files changed, 137 insertions(+), 94 deletions(-) diff --git a/misc/dist/html/default.html b/misc/dist/html/default.html index 91193eea476..0f78fc640e5 100644 --- a/misc/dist/html/default.html +++ b/misc/dist/html/default.html @@ -225,7 +225,7 @@ $GODOT_HEAD_INCLUDE