User prompt
delete score write and add highest score on bottom left on screen
User prompt
can we add to scoreboard to game for players
User prompt
add coin collect sound back
User prompt
we counter another bug, clouds only spawn on 1 horizontal line make them spawn everywhere and little bit less
User prompt
make clouds stable like coins but no hitboxes
User prompt
add clouds to background use cloud asset
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'push')' in or related to this line: 'clouds.push(cloud);' Line Number: 181
User prompt
add clouds to background use cloud asset its only visual and make it random
User prompt
okay lets change the obstacles make them single again and let them move horizontaly
User prompt
just mute the background music enable rest of the sounds
User prompt
add obstacle back to game
User prompt
now they look way better but some of their part is still not look good make the bad part disappear
User prompt
for image u can use image side by side again and again
User prompt
now make them not move but they should be longer like %20-60 percent of horizontal space
User prompt
make obstacles 180 degree turn
User prompt
add rare coins to game use the rare asset make them rare to show like %10 change
User prompt
game music is to high make it lower
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'addEventListener')' in or related to this line: 'document.addEventListener('keydown', function (event) {' Line Number: 101
User prompt
make player able to move baloon with arrow keys
User prompt
now we counter a bug , coins and birds only spawn at 1 line they should keep spawning while we going
User prompt
now birds and coins not coming to screen , while we going up background should go up with us so player only will able to move right and left
User prompt
it feels like things coming to us not we going to them so make them stop in their position while we going up
User prompt
i can't hear the music
User prompt
add a background music from assest > music > cozy
User prompt
add a sound for coin collect from assest > sound > a
===================================================================
--- original.js
+++ change.js
@@ -90,14 +90,15 @@
balloon.y = 2000; // Initial vertical position
var coins = [];
var obstacles = [];
var score = 0;
-var scoreTxt = new Text2('Score: 0', {
- size: 150,
+var highestScore = 0;
+var highestScoreTxt = new Text2('Highest Score: 0', {
+ size: 100,
fill: "#ffffff"
});
-scoreTxt.anchor.set(0, 0);
-LK.gui.topLeft.addChild(scoreTxt);
+highestScoreTxt.anchor.set(0, 1);
+LK.gui.bottomLeft.addChild(highestScoreTxt);
function spawnCoin() {
if (Math.random() < 0.1) {
// 10% chance to spawn a rare coin
var rareCoin = new RareCoin();
@@ -144,9 +145,12 @@
score += 5; // Rare coins give more points
} else {
score += 1;
}
- scoreTxt.setText('Score: ' + score);
+ if (score > highestScore) {
+ highestScore = score;
+ highestScoreTxt.setText('Highest Score: ' + highestScore);
+ }
LK.getSound('coinCollect').play();
LK.getSound('coinCollect').play();
coins[i].destroy();
coins.splice(i, 1);
hot air balloon with simple pixel art. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
simple pixel art coin and yellow. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
remove the pixel i select
pixel art coin with red color. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.