From ce907489f6019a2790e8d19df7d9424e0b19a392 Mon Sep 17 00:00:00 2001 From: Dev 1 Date: Fri, 27 Oct 2023 17:17:20 +0530 Subject: [PATCH] remove beanie from letter C --- src/pages/capital-letter/C.astro | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/src/pages/capital-letter/C.astro b/src/pages/capital-letter/C.astro index 45450f0..c21a955 100644 --- a/src/pages/capital-letter/C.astro +++ b/src/pages/capital-letter/C.astro @@ -36,10 +36,9 @@ import Layout from "../../layouts/Layout.astro"; const game = new Phaser.Game(config); const customWidth = window.innerWidth; const customHeight = window.innerHeight; - let firstLayer, secondLayer, thirdLayer; + let firstLayer; let graphics; let isDrawing = false; - if(isMobile){ cloudeSize = 200; cloudHeight = 340; @@ -52,15 +51,10 @@ import Layout from "../../layouts/Layout.astro"; sunScalePlus = 0.15; sunWidth = 70; sunHeight = 70; - beanieScale = 0.35; - beanieScalePlus = 0.38; - beanieWidth = 135; - beanieHeight = 170; animatedVideoScale = 0.59; animatedAHeight = 32; helpButtonHeight = customHeight / 1.1; helpButtonWidth = customWidth / 2 + 10; - startButtonHeight = customHeight / 1.1; startButtonWidth = customWidth / 2 - 100; } else{ @@ -75,10 +69,6 @@ import Layout from "../../layouts/Layout.astro"; sunScalePlus = 0.25; sunWidth = 200; sunHeight = 100; - beanieScale = 0.4; - beanieScalePlus = 0.44; - beanieWidth = 200; - beanieHeight = 245; animatedVideoScale = 0.70; animatedAHeight = 20; helpButtonHeight = customHeight / 2 + 40; @@ -124,8 +114,6 @@ import Layout from "../../layouts/Layout.astro"; }); const sun = this.add.sprite(customWidth - sunWidth, sunHeight, 'sun').setScale(sunScale).setDepth(-1.9); - const beanie = this.add.sprite(customWidth / 2 - beanieWidth, customHeight / 2 - beanieHeight, 'beanie').setScale(beanieScale).setDepth(1.9); - const scaleFactor = sunScalePlus; // Scale factor (2 means double the size) const duration = 3000; // Duration of the animation in milliseconds @@ -139,17 +127,6 @@ import Layout from "../../layouts/Layout.astro"; ease: 'Linear', yoyo: true, // Makes the animation play in reverse repeat: -1 // Repeat indefinitely - }); - const beaniescaleFactor = beanieScalePlus; // Scale factor (2 means double the size) - const beanieduration = 2500; - this.tweens.add({ - targets: beanie, - scaleX: beaniescaleFactor + 0.004, - scaleY: beaniescaleFactor, - duration: beanieduration, - ease: 'Redial', - yoyo: true, // Makes the animation play in reverse - repeat: -1 // Repeat indefinitely }); const backgroundImages = this.add.image(customWidth / 2, customHeight /2, 'backgroundImage').setDepth(-2).setScale(backgroundScale); this.add.image(customWidth / 2, customHeight / 2 + letterHeight, 'letterC').setAlpha(0.2).setDepth(0.5).setScale(letterScale);