Fix web export
This commit is contained in:
parent
267a34fe90
commit
05bc20375d
|
@ -0,0 +1,34 @@
|
|||
[preset.0]
|
||||
|
||||
name="HTML5"
|
||||
platform="HTML5"
|
||||
runnable=true
|
||||
custom_features=""
|
||||
export_filter="all_resources"
|
||||
include_filter="txt/*"
|
||||
exclude_filter=""
|
||||
export_path="build/web/index.html"
|
||||
script_export_mode=1
|
||||
script_encryption_key=""
|
||||
|
||||
[preset.0.options]
|
||||
|
||||
custom_template/debug=""
|
||||
custom_template/release=""
|
||||
variant/export_type=0
|
||||
vram_texture_compression/for_desktop=true
|
||||
vram_texture_compression/for_mobile=false
|
||||
html/export_icon=true
|
||||
html/custom_html_shell=""
|
||||
html/head_include=""
|
||||
html/canvas_resize_policy=2
|
||||
html/focus_canvas_on_start=true
|
||||
html/experimental_virtual_keyboard=false
|
||||
progressive_web_app/enabled=false
|
||||
progressive_web_app/offline_page=""
|
||||
progressive_web_app/display=1
|
||||
progressive_web_app/orientation=0
|
||||
progressive_web_app/icon_144x144=""
|
||||
progressive_web_app/icon_180x180=""
|
||||
progressive_web_app/icon_512x512=""
|
||||
progressive_web_app/background_color=Color( 0, 0, 0, 1 )
|
|
@ -27,6 +27,8 @@ Game="*res://src/Game.gd"
|
|||
window/size/width=420
|
||||
window/dpi/allow_hidpi=true
|
||||
window/handheld/orientation="portrait"
|
||||
window/stretch/mode="2d"
|
||||
window/stretch/aspect="keep"
|
||||
|
||||
[physics]
|
||||
|
||||
|
@ -35,4 +37,3 @@ common/enable_pause_aware_picking=true
|
|||
[rendering]
|
||||
|
||||
quality/driver/driver_name="GLES2"
|
||||
environment/default_environment="res://default_env.tres"
|
||||
|
|
|
@ -91,18 +91,20 @@ func _generate_WordsMaskLookup(): # This seems fine perf-wise
|
|||
func _setup_globals() -> void:
|
||||
print('Loading dictionary')
|
||||
var file = File.new()
|
||||
match file.open('res://WORDLE', File.READ):
|
||||
match file.open('res://txt/WORDLE', File.READ):
|
||||
OK:
|
||||
WordStrings = file.get_as_text().split('\n', false)
|
||||
var err:
|
||||
print('Error loading dictionary: ', err)
|
||||
get_tree().quit(err)
|
||||
|
||||
print('Loading openers')
|
||||
match file.open('res://opening_words.txt', File.READ):
|
||||
match file.open('res://txt/opening_words.txt', File.READ):
|
||||
OK:
|
||||
for line in file.get_as_text().split('\n', false):
|
||||
BotOpeners.push_back(PoolStringArray(line.split(',')))
|
||||
var err:
|
||||
print('Error loading openers: ', err)
|
||||
get_tree().quit(err)
|
||||
|
||||
for s in WordStrings:
|
||||
|
@ -147,7 +149,7 @@ func _ready() -> void:
|
|||
randomize()
|
||||
print('RNG seeded')
|
||||
|
||||
# yield(KeyboardPanel, 'ready')
|
||||
yield(KeyboardPanel, 'ready')
|
||||
print('Skinning keyboard')
|
||||
update_keyboard()
|
||||
|
||||
|
|
Loading…
Reference in New Issue