diff --git a/frontend/src/components/hallofame/Canvas.tsx b/frontend/src/components/hallofame/Canvas.tsx index 818e2d9..bbe536d 100644 --- a/frontend/src/components/hallofame/Canvas.tsx +++ b/frontend/src/components/hallofame/Canvas.tsx @@ -1,7 +1,6 @@ import React, { useEffect, useRef, useState } from "react"; import { getRandomInt } from "./utils/misc"; import gba from "/gba.png"; -import introVideo from "/intro.mp4"; // Path to the intro video import { fetchPokemonData } from "./fetchPokemonData"; let scaleFactor = 1; let maxX = 0; @@ -151,9 +150,6 @@ const Canvas: React.FC = () => { (0.719 * imagesCanvas.width - (maxX * scaleFactor + 0.284 * imagesCanvas.width)) / 2; - - loaded = true; - // Draw Pokémon images on the images canvas const drawPokemonImages = () => { if (imagesCtx) { @@ -221,7 +217,7 @@ const Canvas: React.FC = () => { {!allAssetsLoaded && (