fix: details
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user