mirror of
https://github.com/danbulant/slightlyComplicatedTicTacToe
synced 2026-06-18 22:11:17 +00:00
update move audio
This commit is contained in:
parent
98bbaf402a
commit
f459b4c2e4
3 changed files with 3 additions and 3 deletions
BIN
client/src/lib/assets/fx/localMove.wav
Normal file
BIN
client/src/lib/assets/fx/localMove.wav
Normal file
Binary file not shown.
BIN
client/src/lib/assets/fx/remoteMove.mp3
Normal file
BIN
client/src/lib/assets/fx/remoteMove.mp3
Normal file
Binary file not shown.
|
|
@ -6,8 +6,8 @@
|
|||
import { DEFAULT_TRANSITION_DURATION } from "./config";
|
||||
import BackButton from "./backButton.svelte";
|
||||
import GameAudio from "./GameAudio";
|
||||
import sndMove1 from "./assets/fx/jump.wav";
|
||||
import sndMove2 from "./assets/fx/accomplished.wav";
|
||||
import sndLocalMove from "./assets/fx/localMove.wav";
|
||||
import sndRemoteMove from "./assets/fx/remoteMove.mp3";
|
||||
|
||||
export var self: 1 | 2 = 1;
|
||||
export var twoPlayer: boolean = false;
|
||||
|
|
@ -181,7 +181,7 @@
|
|||
const duration = DEFAULT_TRANSITION_DURATION;
|
||||
var moveDelayMultiplier = 1;
|
||||
|
||||
const moveSounds = [sndMove1, sndMove2].map(src => new GameAudio(src));
|
||||
const moveSounds = [sndLocalMove, sndRemoteMove].map(src => new GameAudio(src));
|
||||
|
||||
function playMoveSound() {
|
||||
const track = moveSounds[currentPlayer - 1];
|
||||
|
|
|
|||
Loading…
Reference in a new issue