Dev 1 2023-09-15 16:41:05 +05:30
parent ae955c0229
commit 31e5c36501
1 changed files with 11 additions and 13 deletions

View File

@ -31,7 +31,7 @@ import Layout from "../../layouts/Layout.astro";
type: Phaser.AUTO,
width: window.innerWidth,
height: window.innerHeight,
backgroundColor: '#05b3a4',
backgroundColor: '#fff',
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_HORIZONTALLY,
@ -90,7 +90,6 @@ import Layout from "../../layouts/Layout.astro";
.catch(error => {
console.error('Error fetching initial data:', error);
});
graphics = this.add.graphics();
if(!isMobile){
graphics.lineStyle(50, 0x5e17eb);
@ -98,7 +97,6 @@ import Layout from "../../layouts/Layout.astro";
graphics.lineStyle(25, 0x5e17eb);
}
this.add.image(customWidth / 2 * 1.6 - 0.5, 50 , 'topLogo');
this.input.on('pointerdown', function (pointer) {
if (image.getBounds().contains(pointer.x, pointer.y)) {
// Start dragging only if the pointer is over the image