path n js

pull/1/head
ov 2023-07-20 02:14:53 +05:30
parent bf80118d07
commit afef742df0
3 changed files with 243039 additions and 235738 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -8,14 +8,14 @@ import Layout from '../../layouts/Layout.astro';
<main>
<div>
<div>
<img style="width: 100%; height: 150px;" src="./assets/topbar1.jpg" alt="">
<img style="width: 100%; height: 150px;" src="/assets/topbar1.jpg" alt="">
</div>
<div id="overlap">
<div id="result"></div>
<div id="win" class="displayNone ">
<p>Congratulations!</p>
<p>You win the Game!</p>
<img class="" src="./assets/party-feestje.gif" alt="" style="width: 200px; height: 200px;" />
<img class="" src="/assets/party-feestje.gif" alt="" style="width: 200px; height: 200px;" />
<div class="">
<a href="" >
<svg fill="#7c4c23" height="64px" width="64px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 74.999 74.999" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g> <path d="M33.511,71.013c15.487,0,28.551-10.563,32.375-24.859h9.113L61.055,22L47.111,46.151h8.006 c-3.44,8.563-11.826,14.628-21.605,14.628c-12.837,0-23.28-10.443-23.28-23.28c0-12.836,10.443-23.28,23.28-23.28 c6.604,0,12.566,2.768,16.809,7.196l5.258-9.108c-5.898-5.176-13.619-8.32-22.065-8.32C15.034,3.987,0,19.019,0,37.5 C-0.002,55.981,15.03,71.013,33.511,71.013z"></path> </g> </g></svg>
@ -30,7 +30,7 @@ import Layout from '../../layouts/Layout.astro';
<div id="lost" class="displayNone">
<p>Oops!</p>
<p>You Lost the Game!</p>
<img class="" src="./assets/output-onlinegiftools.gif" alt="" style="width: 200px; height: 200px;" />
<img class="" src="/assets/output-onlinegiftools.gif" alt="" style="width: 200px; height: 200px;" />
<a href="" >
<svg fill="#7c4c23" height="64px" width="64px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 74.999 74.999" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g> <path d="M33.511,71.013c15.487,0,28.551-10.563,32.375-24.859h9.113L61.055,22L47.111,46.151h8.006 c-3.44,8.563-11.826,14.628-21.605,14.628c-12.837,0-23.28-10.443-23.28-23.28c0-12.836,10.443-23.28,23.28-23.28 c6.604,0,12.566,2.768,16.809,7.196l5.258-9.108c-5.898-5.176-13.619-8.32-22.065-8.32C15.034,3.987,0,19.019,0,37.5 C-0.002,55.981,15.03,71.013,33.511,71.013z"></path> </g> </g></svg>
</a>
@ -93,26 +93,26 @@ class MyGame extends Phaser.Scene {
}
preload() {
// this.load.image("wrong", "https://management.beanstalkedu.com/assets/1320eec6-3029-41e5-8aad-904e590cb420");
this.load.image("tick", './assets/tick.png');
this.load.image("bg", './assets/background.jpg');
this.load.image("target1", './assets/yam.png');
this.load.image("target2", './assets/hay.png');
this.load.image("target3", './assets/mat.png');
this.load.image("target4", './assets/star.png');
this.load.image("border", './assets/squar.png');
this.load.spritesheet("blocks1", './assets/chat.png', {
this.load.image("tick", '/assets/tick.png');
this.load.image("bg", '/assets/background.jpg');
this.load.image("target1", '/assets/yam.png');
this.load.image("target2", '/assets/hay.png');
this.load.image("target3", '/assets/mat.png');
this.load.image("target4", '/assets/star.png');
this.load.image("border", '/assets/squar.png');
this.load.spritesheet("blocks1", '/assets/chat.png', {
frameWidth: 100,
frameHeight: 100,
});
this.load.spritesheet("blocks2", './assets/jar.png', {
this.load.spritesheet("blocks2", '/assets/jar.png', {
frameWidth: 100,
frameHeight: 100,
});
this.load.spritesheet("blocks3", './assets/jam.png', {
this.load.spritesheet("blocks3", '/assets/jam.png', {
frameWidth: 100,
frameHeight: 100,
});
this.load.spritesheet("blocks4", './assets/day.png', {
this.load.spritesheet("blocks4", '/assets/day.png', {
frameWidth: 100,
frameHeight: 100,
});