fix: details

This commit is contained in:
2026-04-04 14:47:03 +08:00
parent 39f5e6159c
commit aba035f2ec
3 changed files with 93 additions and 34 deletions
+5 -1
View File
@@ -23,7 +23,11 @@ export function PhaserGame(props: PhaserGameProps) {
const gameSignal = useSignal<Phaser.Game>();
useSignalEffect(() => {
const phaserGame = new Phaser.Game(props.config || defaultPhaserConfig);
const config: Phaser.Types.Core.GameConfig = {
...defaultPhaserConfig,
...props.config,
};
const phaserGame = new Phaser.Game(config);
gameSignal.value = phaserGame;
return () => {