From 0b8974e755e65d31d5fc2598bad8a9f96cdfcf58 Mon Sep 17 00:00:00 2001 From: ItsArnavSh Date: Sun, 15 Sep 2024 19:06:54 +0530 Subject: [PATCH 1/2] Added Data --- frontend/src/components/hallofame/Canvas.tsx | 6 +- frontend/src/components/tutorial/data.ts | 232 +++++++++++++++---- 2 files changed, 190 insertions(+), 48 deletions(-) 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 && (