- Add [display] section to project.godot:
- 1280x720 base viewport (was unset → Godot default tiny resolution)
- stretch/mode = canvas_items: all UI + text scales proportionally
- stretch/aspect = expand: fills window, adds space on wider screens
- Add html/head_include script that runs on page load:
- Sets canvas touch-action to 'auto' (removes Godot's default 'none'
which blocked pinch-to-zoom on mobile)
- Patches viewport meta to allow user-scalable=yes, maximum-scale=5.0
so browser zoom works on both desktop and mobile
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
40 lines
935 B
Plaintext
40 lines
935 B
Plaintext
; Engine configuration file.
|
|
; It's best edited using the editor UI and not directly,
|
|
; since the parameters that go here are not all obvious.
|
|
;
|
|
; Format:
|
|
; [section] ; section goes between []
|
|
; param=value ; assign values to parameters
|
|
|
|
config_version=5
|
|
|
|
[application]
|
|
|
|
config/name="Origin-Client"
|
|
run/main_scene="res://scenes/login/LoginScreen.tscn"
|
|
config/features=PackedStringArray("4.5", "GL Compatibility")
|
|
config/icon="res://icon.svg"
|
|
|
|
[autoload]
|
|
|
|
Network="*res://autoloads/Network.gd"
|
|
ContentCache="*res://autoloads/ContentCache.gd"
|
|
Auth="*res://autoloads/Auth.gd"
|
|
|
|
[input_devices]
|
|
|
|
pointing/emulate_touch_from_mouse=true
|
|
|
|
[display]
|
|
|
|
window/size/viewport_width=1280
|
|
window/size/viewport_height=720
|
|
window/stretch/mode="canvas_items"
|
|
window/stretch/aspect="expand"
|
|
|
|
[rendering]
|
|
|
|
renderer/rendering_method="gl_compatibility"
|
|
renderer/rendering_method.mobile="gl_compatibility"
|
|
textures/vram_compression/import_etc2_astc=true
|