Commit Graph

7 Commits

Author SHA1 Message Date
42181fe185 chore: remove unused imports in useGameEngine 2026-06-07 16:18:05 +08:00
058e688f6e add feature idea: AI-generated story from player choices 2026-06-07 16:03:05 +08:00
7aed2b46ca fix: add start button to satisfy browser autoplay policy
Replace auto-start after loading with a '开始游戏' button overlay.
The user click provides the required user gesture for autoplay with sound,
fixing the issue where play() was silently rejected and choices never appeared.
2026-06-07 15:44:31 +08:00
192ecbbce2 fix: wait for video metadata before playing and set onEnd before play
- Reorder onEnd callback before play() in Engine.goToScene to prevent
  missed ended event if video ends synchronously
- Wait for loadedmetadata event in VideoManager.play() before seeking
  to ensure currentTime reset works correctly on new video sources
2026-06-07 14:34:15 +08:00
fb93782331 fix: wait for DOM update before attaching video element 2026-06-07 14:16:20 +08:00
3729b90be9 add README 2026-06-07 14:05:01 +08:00
aeb6dc46a4 init 2026-06-07 13:50:05 +08:00