diff --git a/src/pages/guided-tracing/A.astro b/src/pages/guided-tracing/A.astro index 8687478..b9e7db2 100644 --- a/src/pages/guided-tracing/A.astro +++ b/src/pages/guided-tracing/A.astro @@ -102,39 +102,9 @@ import Layout from "../../layouts/Layout.astro"; this.load.image('sun', '/assets/sun.png'); this.load.image('bgMobile', '/assets/bgMobile.png'); this.load.image('canvasStand', '/assets/stand2.png'); - // this.load.image('customCursor', '/assets/pencile.png'); - // this.load.image('eye', '/assets/pencile.png'); - this.load.image('customCursor', '/assets/pencile.png'); - - } function create() { - this.input.setDefaultCursor('none'); - - // Set the initial position of the custom cursor - const initialCursorX = customWidth / 2 - 8; - const initialCursorY = customHeight / 2 - 100; - - // Create a sprite for the custom cursor at the initial position - customCursor = this.add.sprite(initialCursorX, initialCursorY, 'customCursor'); - // customCursor.setOrigin(0.5, 0.5); - customCursor.setOrigin(0.0, 0.98).setDepth(2.1).setScale(0.18); - - // Set the custom cursor to follow the pointer - this.input.on('pointermove', (pointer) => { - customCursor.x = pointer.x; - customCursor.y = pointer.y; - }); - - // Hide cursor on click - this.input.on('pointerdown', () => { - customCursor.setVisible(true); - }); - - this.input.on('pointerup', () => { - customCursor.setVisible(true); - }); this.add.image(customWidth / 2 * 1.6 - 0.5, 50, 'topLogo'); this.add.text(customWidth / 10, 20, "Letter : A", { font: '700 40px quicksand', fill: '#05b3a4', }); const cloud = this.add.tileSprite(customWidth / 2, customHeight / 2 - cloudHeight, customWidth, cloudeSize, 'cloud').setAlpha(0.9); @@ -376,9 +346,6 @@ import Layout from "../../layouts/Layout.astro"; } function update() { - this.input.x = 100; // X coordinate - this.input.y = 200; - } \ No newline at end of file diff --git a/src/pages/guided-tracing/C.astro b/src/pages/guided-tracing/C.astro index 8a469fa..631a799 100644 --- a/src/pages/guided-tracing/C.astro +++ b/src/pages/guided-tracing/C.astro @@ -52,10 +52,10 @@ import Layout from "../../layouts/Layout.astro"; sunScalePlus = 0.15; sunWidth = 70; sunHeight = 70; - parrotScale = 0.35; - parrotScalePlus = 0.38; - parrotWidth = 135; - parrotHeight = 170; + beanieScale = 0.35; + beanieScalePlus = 0.38; + beanieWidth = 135; + beanieHeight = 170; animatedAHeight = 32; } else{ cloudeSize = 500; @@ -69,10 +69,10 @@ import Layout from "../../layouts/Layout.astro"; sunScalePlus = 0.25; sunWidth = 200; sunHeight = 100; - parrotScale = 0.4; - parrotScalePlus = 0.44; - parrotWidth = 200; - parrotHeight = 245; + beanieScale = 0.4; + beanieScalePlus = 0.44; + beanieWidth = 200; + beanieHeight = 245; animatedAHeight = 20; } // let hideButton; @@ -89,7 +89,7 @@ import Layout from "../../layouts/Layout.astro"; this.load.image('backgroundImage', '/assets/bg6.png'); this.load.image('cloud', '/assets/cloud.png'); this.load.image('canvas', '/assets/canvas4.png'); - this.load.image('parrot', '/assets/parrot.png'); + this.load.image('beanie', '/assets/beanieImage.png'); this.load.image('sun', '/assets/sun.png'); this.load.image('bgMobile', '/assets/bgMobile.png'); this.load.image('canvasStand', '/assets/stand2.png'); @@ -112,7 +112,7 @@ import Layout from "../../layouts/Layout.astro"; }); const sun = this.add.sprite(customWidth - sunWidth, sunHeight, 'sun').setScale(sunScale).setDepth(-1.9); - const parrot = this.add.sprite(customWidth / 2 - parrotWidth, customHeight / 2 - parrotHeight, 'parrot').setScale(parrotScale).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) @@ -128,19 +128,19 @@ import Layout from "../../layouts/Layout.astro"; yoyo: true, // Makes the animation play in reverse repeat: -1 // Repeat indefinitely }); - const parrotscaleFactor = parrotScalePlus; // Scale factor (2 means double the size) - const parrotduration = 2500; + const beaniescaleFactor = beanieScalePlus; // Scale factor (2 means double the size) + const beanieduration = 2500; this.tweens.add({ - targets: parrot, - scaleX: parrotscaleFactor + 0.004, - scaleY: parrotscaleFactor, - duration: parrotduration, + 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 + 90, customHeight / 2 + letterHeight, 'letterC').setAlpha(0.2).setDepth(0.5).setScale(letterScale); + this.add.image(customWidth / 2, customHeight / 2 + letterHeight, 'letterC').setAlpha(0.2).setDepth(0.5).setScale(letterScale); const firstScreen = this.add.image(customWidth / 2 + 90, customHeight / 2 + letterHeight, 'letterC').setDepth(2).setScale(letterScale); // const firstScreen = this.add.image(customWidth / 2, customHeight / 2 + letterHeight, 'animatedA').setDepth(2); canvasStand firstScreen.setVisible(false); @@ -220,7 +220,7 @@ import Layout from "../../layouts/Layout.astro"; let textX, textY; - firstLayer = this.add.image(customWidth / 2 + 90, customHeight / 2 + letterHeight, 'layer1').setScale(letterScale); + firstLayer = this.add.image(customWidth / 2, customHeight / 2 + letterHeight, 'layer1').setScale(letterScale); textX = isMobile ? customWidth / 4 : customWidth * 0.75; textY = isMobile ? customHeight / 5 : customHeight / 2; const firstTextLayer = this.add.text(textX, textY, '1. Hook Around',{ font: '700 40px quicksand', fill: '#05b3a4'}); diff --git a/src/pages/guided-tracing/D.astro b/src/pages/guided-tracing/D.astro index 95e6290..8259362 100644 --- a/src/pages/guided-tracing/D.astro +++ b/src/pages/guided-tracing/D.astro @@ -52,10 +52,10 @@ import Layout from "../../layouts/Layout.astro"; sunScalePlus = 0.15; sunWidth = 70; sunHeight = 70; - parrotScale = 0.35; - parrotScalePlus = 0.38; - parrotWidth = 135; - parrotHeight = 170; + beanieScale = 0.35; + beanieScalePlus = 0.38; + beanieWidth = 135; + beanieHeight = 170; animatedAHeight = 32; } else{ cloudeSize = 500; @@ -69,10 +69,10 @@ import Layout from "../../layouts/Layout.astro"; sunScalePlus = 0.25; sunWidth = 200; sunHeight = 100; - parrotScale = 0.4; - parrotScalePlus = 0.44; - parrotWidth = 200; - parrotHeight = 245; + beanieScale = 0.4; + beanieScalePlus = 0.44; + beanieWidth = 200; + beanieHeight = 245; animatedAHeight = 20; } // let hideButton; @@ -91,7 +91,7 @@ import Layout from "../../layouts/Layout.astro"; this.load.image('backgroundImage', '/assets/bg6.png'); this.load.image('cloud', '/assets/cloud.png'); this.load.image('canvas', '/assets/canvas4.png'); - this.load.image('parrot', '/assets/parrot.png'); + this.load.image('beanie', '/assets/beanieImage.png'); this.load.image('sun', '/assets/sun.png'); this.load.image('bgMobile', '/assets/bgMobile.png'); this.load.image('canvasStand', '/assets/stand2.png'); @@ -114,7 +114,7 @@ import Layout from "../../layouts/Layout.astro"; }); const sun = this.add.sprite(customWidth - sunWidth, sunHeight, 'sun').setScale(sunScale).setDepth(-1.9); - const parrot = this.add.sprite(customWidth / 2 - parrotWidth, customHeight / 2 - parrotHeight, 'parrot').setScale(parrotScale).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) @@ -130,13 +130,13 @@ import Layout from "../../layouts/Layout.astro"; yoyo: true, // Makes the animation play in reverse repeat: -1 // Repeat indefinitely }); - const parrotscaleFactor = parrotScalePlus; // Scale factor (2 means double the size) - const parrotduration = 2500; + const beaniescaleFactor = beanieScalePlus; // Scale factor (2 means double the size) + const beanieduration = 2500; this.tweens.add({ - targets: parrot, - scaleX: parrotscaleFactor + 0.004, - scaleY: parrotscaleFactor, - duration: parrotduration, + targets: beanie, + scaleX: beaniescaleFactor + 0.004, + scaleY: beaniescaleFactor, + duration: beanieduration, ease: 'Redial', yoyo: true, // Makes the animation play in reverse repeat: -1 // Repeat indefinitely diff --git a/src/pages/guided-tracing/E.astro b/src/pages/guided-tracing/E.astro index d711ed9..7352121 100644 --- a/src/pages/guided-tracing/E.astro +++ b/src/pages/guided-tracing/E.astro @@ -52,10 +52,10 @@ import Layout from "../../layouts/Layout.astro"; sunScalePlus = 0.15; sunWidth = 70; sunHeight = 70; - parrotScale = 0.35; - parrotScalePlus = 0.38; - parrotWidth = 135; - parrotHeight = 170; + beanieScale = 0.35; + beanieScalePlus = 0.38; + beanieWidth = 135; + beanieHeight = 170; animatedAHeight = 32; } else{ cloudeSize = 500; @@ -69,10 +69,10 @@ import Layout from "../../layouts/Layout.astro"; sunScalePlus = 0.25; sunWidth = 200; sunHeight = 100; - parrotScale = 0.4; - parrotScalePlus = 0.44; - parrotWidth = 200; - parrotHeight = 245; + beanieScale = 0.4; + beanieScalePlus = 0.44; + beanieWidth = 200; + beanieHeight = 245; animatedAHeight = 20; } function preload() { @@ -92,7 +92,7 @@ import Layout from "../../layouts/Layout.astro"; this.load.image('backgroundImage', '/assets/bg6.png'); this.load.image('cloud', '/assets/cloud.png'); this.load.image('canvas', '/assets/canvas4.png'); - this.load.image('parrot', '/assets/parrot.png'); + this.load.image('beanie', '/assets/beanieImage.png'); this.load.image('sun', '/assets/sun.png'); this.load.image('bgMobile', '/assets/bgMobile.png'); this.load.image('canvasStand', '/assets/stand2.png'); @@ -115,7 +115,7 @@ import Layout from "../../layouts/Layout.astro"; }); const sun = this.add.sprite(customWidth - sunWidth, sunHeight, 'sun').setScale(sunScale).setDepth(-1.9); - const parrot = this.add.sprite(customWidth / 2 - parrotWidth, customHeight / 2 - parrotHeight, 'parrot').setScale(parrotScale).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) @@ -131,13 +131,13 @@ import Layout from "../../layouts/Layout.astro"; yoyo: true, // Makes the animation play in reverse repeat: -1 // Repeat indefinitely }); - const parrotscaleFactor = parrotScalePlus; // Scale factor (2 means double the size) - const parrotduration = 2500; + const beaniescaleFactor = beanieScalePlus; // Scale factor (2 means double the size) + const beanieduration = 2500; this.tweens.add({ - targets: parrot, - scaleX: parrotscaleFactor + 0.004, - scaleY: parrotscaleFactor, - duration: parrotduration, + targets: beanie, + scaleX: beaniescaleFactor + 0.004, + scaleY: beaniescaleFactor, + duration: beanieduration, ease: 'Redial', yoyo: true, // Makes the animation play in reverse repeat: -1 // Repeat indefinitely @@ -226,7 +226,7 @@ import Layout from "../../layouts/Layout.astro"; firstLayer = this.add.image(customWidth / 2 - 20, customHeight / 2 + letterHeight, 'layer1').setScale(letterScale); textX = isMobile ? customWidth / 4 : customWidth * 0.75; textY = isMobile ? customHeight / 5 : customHeight / 2; - const firstTextLayer = this.add.text(textX, textY, '1. Slant Left',{ font: '700 40px quicksand', fill: '#05b3a4'}); + const firstTextLayer = this.add.text(textX, textY, '1. Tall Down',{ font: '700 40px quicksand', fill: '#05b3a4'}); const audioOneAudio = this.sound.add('audioOne'); audioOneAudio.play(); firstLayer.setDepth(1); diff --git a/src/pages/guided-tracing/F.astro b/src/pages/guided-tracing/F.astro new file mode 100644 index 0000000..3e2c4fc --- /dev/null +++ b/src/pages/guided-tracing/F.astro @@ -0,0 +1,347 @@ +--- +import Layout from "../../layouts/Layout.astro"; +--- + +
+
+
+ +
+
+ \ No newline at end of file diff --git a/src/pages/guided-tracing/G.astro b/src/pages/guided-tracing/G.astro new file mode 100644 index 0000000..4ba1f97 --- /dev/null +++ b/src/pages/guided-tracing/G.astro @@ -0,0 +1,318 @@ +--- +import Layout from "../../layouts/Layout.astro"; +--- + +
+
+
+ +
+
+ \ No newline at end of file