From 3e7cf9bb6d87bad74a3182662a0e9fea0cc9ec75 Mon Sep 17 00:00:00 2001 From: Coke And Code Date: Mon, 11 Nov 2024 17:47:06 +0000 Subject: [PATCH] Fix audio in phaser --- src/client.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/client.ts b/src/client.ts index c9c3f47..ef99cee 100644 --- a/src/client.ts +++ b/src/client.ts @@ -100,8 +100,7 @@ class TicTacToe extends Phaser.Scene { } Rune.initClient({ - onChange: ({ game, yourPlayerId, action, allPlayerIds, event }) => { - console.log(action, event) + onChange: ({ game, yourPlayerId, allPlayerIds, event }) => { const { cells, lastMovePlayerId } = game; // we're starting a new game so reset everything in the UI @@ -268,6 +267,9 @@ const config = { width: window.innerWidth, height: window.innerHeight, backgroundColor: "#333", + audio: { + disableWebAudio: true, + }, scene: TicTacToe, };