User prompt
play sand when player moves
User prompt
hitboxes should nto be visible
User prompt
make sure collision detectionn is using hte actual size of the player and coconut hitbox
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: self.hitbox.intersects is not a function' in or related to this line: 'if (self.hitbox.intersects(coconuts[i].hitbox)) {' Line Number: 139
User prompt
Check for collision with coconuts should use playerhitbox and coconuthitbox
User prompt
when player hitbox collides with coconut hitbox, then game over
User prompt
remove collision detection between player and coconut
User prompt
make sure to check that coconut an player hitbox colide before game over
User prompt
Please fix the bug: 'TypeError: player.hitbox.intersects is not a function' in or related to this line: 'if (player.hitbox.intersects(coconuts[b].hitbox)) {' Line Number: 245
User prompt
player should only colide wiht cocount wen hitboxes colide, no the player and coconut asset
User prompt
create an asset to show the coconut hitbox
User prompt
create an asset to show the player hitbox
User prompt
remove player left asset
User prompt
show player hitbox
Code edit (2 edits merged)
Please save this source code
User prompt
esplosion of coconuts should only be upwards
Code edit (1 edits merged)
Please save this source code
User prompt
add a small particle explosion when a coconut is destroyed
User prompt
play coconut sound when it is destroyed
User prompt
play backgorundmusic on game start
User prompt
add small tilting to player when still
===================================================================
--- original.js
+++ change.js
@@ -91,8 +91,9 @@
self.moveSpeed = 20;
self._move_migrated = function (x, y) {
self.targetX = x;
self.targetY = y;
+ LK.getSound('sand').play();
};
self._update_migrated = function () {
var dx = self.targetX - self.x;
var dy = self.targetY - self.y;
8-bit. Cartoon. Guy the beach. Full body. Looking up. Sunglasses. Worried. In game asset. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
delete inpain selection
pixelart cartoon beach schene. just the beach and a big palm tree. no background.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixelart cartoon beach background for a mobile screen.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.