Skip to content

Commit

Permalink
Fix audio in phaser
Browse files Browse the repository at this point in the history
  • Loading branch information
kevglass committed Nov 11, 2024
1 parent e9ae266 commit 3e7cf9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -268,6 +267,9 @@ const config = {
width: window.innerWidth,
height: window.innerHeight,
backgroundColor: "#333",
audio: {
disableWebAudio: true,
},
scene: TicTacToe,
};

Expand Down

0 comments on commit 3e7cf9b

Please sign in to comment.