Commit 6e31c20
dev: hide loading overlay on loadComplete() instead of init()
The `wavedash dev` init gate polled window.Wavedash.initialized, which is
only set by Wavedash.init(). Both prod loaders (the play embed spinner and
the mainsite GameSessionFrame loader) instead key off loadComplete() /
gameLoaded, which the engine default entrypoints call automatically. A
Godot/Unity game that never calls init() therefore spun forever under
`wavedash dev` while clearing fine on the site.
Gate the overlay on window.Wavedash.gameLoaded for parity with prod, and
update the 10s timeout message to reference loadComplete().
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent db36df7 commit 6e31c20
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
0 commit comments