Skip to content

Commit

Permalink
Merge branch 'main' into About
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsArnavSh authored Sep 19, 2024
2 parents 40b429a + 274331a commit 8e552bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Binary file added frontend/public/clickSoundEffect.wav
Binary file not shown.
6 changes: 4 additions & 2 deletions frontend/src/components/hallofame/Canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { useEffect, useRef, useState } from "react";
import { getRandomInt } from "./utils/misc";
import gba from "/largeboy.png";
import { fetchPokemonData } from "./fetchPokemonData";
import "../../App.css";
let scaleFactor = 1;
let maxX = 0;
let maxY = 0;
Expand Down Expand Up @@ -519,7 +518,10 @@ const Canvas: React.FC = () => {
pokemonData[pokeIndex].PokiHeight * scaleFactor * 1.5,
);
}
function playClickAudio() {}
function playClickAudio() {
const sound = new Audio('\clickSoundEffect.wav')
sound.play();
}
return (
<div style={{ position: "relative", width: "90vw", height: "90vh" }}>
{/* Canvas for video */}
Expand Down

0 comments on commit 8e552bc

Please sign in to comment.