platform-web
Installation
SKILL.md
Platform: Web
Browser API integration, LocalStorage persistence, and size optimization define web deployment.
Available Scripts
web_bridge_sync.gd
Expert JavaScriptBridge helpers for browser API integration (persistence, analytics).
NEVER Do in Web Development
- NEVER use FileAccess for saves —
FileAccess.open("user://save.dat")on web? Browser sandbox blocks filesystem. Use JavaScriptBridge + localStorage. - NEVER forget loading screen — 20MB wasm download with default load screen = user closes tab. MUST customize index.html with progress bar + brand assets.
- NEVER use threads —
Thread.new()on web? Not supported. Useawaitfor async OR split work across frames withawait get_tree().process_frame. - NEVER ignore HTTPS requirement — Geolocation, microphone, webcam APIs REQUIRE HTTPS. Local
http://= APIs blocked. UselocalhostOR HTTPS. - NEVER exceed 50MB build size — 100MB WebAssembly = user rage-quits during load. Compress textures (ETC2/ASTC), exclude unused assets.
- NEVER hardcode window size —
get_viewport().size = Vector2(1920, 1080)on web? Breaks mobile browsers. Useget_window().size_changed+ responsive UI.