Updated sounds

This commit is contained in:
thepaperpilot 2023-02-28 21:31:23 -06:00
parent b0be84c951
commit e0865e870b
5 changed files with 9 additions and 2 deletions

Binary file not shown.

BIN
public/freeze.wav Normal file

Binary file not shown.

BIN
public/level up coot v2.wav Normal file

Binary file not shown.

View file

@ -94,6 +94,7 @@ const damage = new Audio("damage.wav");
const droppingCoots = new Audio("dropping coots in field.wav"); const droppingCoots = new Audio("dropping coots in field.wav");
const lose = new Audio("lose.wav"); const lose = new Audio("lose.wav");
const reroll = new Audio("reroll.wav"); const reroll = new Audio("reroll.wav");
const freeze = new Audio("freeze.wav");
export const characters: Record<string, CharacterInfo> = { export const characters: Record<string, CharacterInfo> = {
// Tier 1 // Tier 1
@ -1050,8 +1051,8 @@ export const main = createLayer("main", function (this: BaseLayer) {
buttonClick.play(); buttonClick.play();
} else if (selectedShopItem.value != null) { } else if (selectedShopItem.value != null) {
emit("freeze", selectedShopItem.value!); emit("freeze", selectedShopItem.value!);
buttonClick.currentTime = 0; freeze.currentTime = 0;
buttonClick.play(); freeze.play();
} else if (selectedStreamType.value != null) { } else if (selectedStreamType.value != null) {
if (gold.value > 2) { if (gold.value > 2) {
emit("change stream type", selectedStreamType.value); emit("change stream type", selectedStreamType.value);

View file

@ -20,6 +20,8 @@ import healthParticles from "./health.json";
import presenceParticles from "./presence.json"; import presenceParticles from "./presence.json";
import { EmitterConfigV3 } from "@pixi/particle-emitter"; import { EmitterConfigV3 } from "@pixi/particle-emitter";
const levelUp = new Audio("level up coot v2.wav");
export const connected = ref<boolean>(false); export const connected = ref<boolean>(false);
export const nickname = ref<string>(""); export const nickname = ref<string>("");
export const room = ref<string>(""); export const room = ref<string>("");
@ -201,6 +203,8 @@ function setupSocket(socket: Socket<ServerToClientEvents, ClientToServerEvents>)
if (characters[char.type].abilityType === "LevelUp") { if (characters[char.type].abilityType === "LevelUp") {
setTimeout(() => characters[char.type].performAbility(char), 1250); setTimeout(() => characters[char.type].performAbility(char), 1250);
} }
levelUp.currentTime = 0;
levelUp.play();
} }
}); });
socket.on("move", (index, otherIndex) => { socket.on("move", (index, otherIndex) => {
@ -222,6 +226,8 @@ function setupSocket(socket: Socket<ServerToClientEvents, ClientToServerEvents>)
if (characters[char.type].abilityType === "LevelUp") { if (characters[char.type].abilityType === "LevelUp") {
setTimeout(() => characters[char.type].performAbility(char), 1250); setTimeout(() => characters[char.type].performAbility(char), 1250);
} }
levelUp.currentTime = 0;
levelUp.play();
} }
}); });
socket.on("stream", (enemy, outcome) => { socket.on("stream", (enemy, outcome) => {