User prompt
fix that the speechbubble is shown
User prompt
if the player hits a revolvingplanet, increase the score
User prompt
set the revolvingplanet to visible false, if the player collides with it
Code edit (4 edits merged)
Please save this source code
User prompt
Only check collision with planets which are visible
User prompt
if the revolvingplanet.parentPlanet respawns make sure to make it visible again
Code edit (1 edits merged)
Please save this source code
User prompt
Migrate to the latest version of LK
User prompt
play the jump sound whenver the player jumps
User prompt
add a sound "collect" and play it when the player collides with the revolvingplanet
User prompt
play a sound gameover when the game is over
User prompt
play a sound impact when the player collides lands on a planet
User prompt
Please fix the bug: 'TypeError: Cannot read properties of null (reading 'x')' in or related to this line: 'var dx = player.x - currentPlanet.x;' Line Number: 154
Code edit (1 edits merged)
Please save this source code
User prompt
add a music "flower" and play it at game start
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: LK.playMusic is not a function' in or related to this line: 'LK.playMusic('flower');' Line Number: 162
===================================================================
--- original.js
+++ change.js
@@ -143,9 +143,9 @@
var angle = Math.atan2(dy, dx);
currentPlanet = null;
player.jump(jumpPower, angle);
});
- LK.playMusic('flower');
+ LK.getSound('flower').play();
}
function checkCollisions() {
planets.forEach(function (planet) {
if (planet.visible) {
planet. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. transparent background
monkey astronaut. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. transparent background
space background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. transparent background
speech bubble saying "wee". game asset. 2d. 8bit. no background. transparent background.
banana. game asset. 2d. 8bit. no background. transparent background.