This commit is contained in:
Suvodip
2024-06-24 19:15:56 +05:30
parent 5c233bafa6
commit cf51757537
28 changed files with 257 additions and 132 deletions

View File

@@ -100,7 +100,7 @@ import Layout from "../../layouts/Layout.astro";
.then(res => res.json())
.then(data => {
gameData = data.data;
console.log(gameData)
// console.log(gameData)
document.getElementById("gameDescription").innerHTML = gameData.description;
if(gameData.label1){
document.getElementById("label1").innerHTML = gameData.label1;
@@ -181,7 +181,7 @@ import Layout from "../../layouts/Layout.astro";
'gameTime': timeDifferenceInSeconds,
'score': totalPoints,
};
console.log(userData);
// console.log(userData);
fetch(`https://phaser-game-api.s38.siliconpin.com/save-data`, {
method: 'POST',
headers: {
@@ -193,7 +193,7 @@ import Layout from "../../layouts/Layout.astro";
if (response.ok) {
document.getElementById('savedMessage').innerHTML = 'Saved Successfully';
} else {
console.log('Something Wrong', response);
// console.log('Something Wrong', response);
}
})
.catch(error => {