fix: fading

This commit is contained in:
hyper 2026-04-12 18:18:45 +08:00
parent 6584578316
commit cc80cbad06
2 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,7 @@ export function PhaserGame(props: PhaserGameProps) {
const fade = phaserGame.scene.getScene(FADE_SCENE_KEY) as FadeSceneClass;
// 淡出到黑色
phaserGame.scene.bringToTop(FADE_SCENE_KEY);
await fade.fadeOut(300);
// 停止当前场景

View File

@ -68,6 +68,8 @@ export class GameScene extends GameHostScene<TicTacToeState> {
const currentPlayer = this.state.currentPlayer;
this.updateTurnText(currentPlayer);
});
this.gameHost.start();
}
/** 创建棋盘视觉元素(网格、标题、回合提示) */