mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
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().
This commit is contained in:
parent
9107357c8d
commit
35adf718cf
5 changed files with 137 additions and 94 deletions
|
|
@ -102,14 +102,13 @@ def configure(env):
|
|||
|
||||
## Link flags
|
||||
|
||||
env.Append(LINKFLAGS=['-s', 'EXTRA_EXPORTED_RUNTIME_METHODS="[\'FS\']"'])
|
||||
env.Append(LINKFLAGS=['-s', 'USE_WEBGL2=1'])
|
||||
|
||||
env.Append(LINKFLAGS=['-s', 'BINARYEN=1'])
|
||||
# In contrast to asm.js, enabling memory growth on WebAssembly has no
|
||||
# major performance impact, and causes only a negligible increase in
|
||||
# memory size.
|
||||
env.Append(LINKFLAGS=['-s', 'ALLOW_MEMORY_GROWTH=1'])
|
||||
env.Append(LINKFLAGS=['-s', 'USE_WEBGL2=1'])
|
||||
env.Append(LINKFLAGS=['-s', 'EXTRA_EXPORTED_RUNTIME_METHODS="[\'FS\']"'])
|
||||
|
||||
env.Append(LINKFLAGS=['-s', 'INVOKE_RUN=0'])
|
||||
env.Append(LINKFLAGS=['-s', 'NO_EXIT_RUNTIME=1'])
|
||||
|
||||
# TODO: Move that to opus module's config
|
||||
if 'module_opus_enabled' in env and env['module_opus_enabled']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue