User prompt
coconut rotations can be to either side
Code edit (1 edits merged)
Please save this source code
User prompt
each coconut should have a small rotation on its axis, different for each one
User prompt
create two layers for background front and back
User prompt
instead of using player left, use mirror image of player when moving left
User prompt
player should be able to move to the exact limit of both sides of the screen
User prompt
make player shadow a little smaller
User prompt
add 30% margin for collision between player and coconut
User prompt
add hitbox to player and coconuts and add som margin to collision
User prompt
try another animation, maybe titl it while moving
User prompt
add a small animationn the the player when its moving. so that the static image feels alive.
User prompt
Migrate to the latest version of LK
User prompt
Make coconuts speed faster.
User prompt
add 20 pixels of margin to hero and coconut collision
User prompt
adjust collision between hero and coconuts so that asset actually touches hero
User prompt
move scorebg 10 pixels right and 10 pixels down
User prompt
move score bg 20 pixels left and 20 up
User prompt
move scorebg 300 pixels to the left
User prompt
move scorebg behind score
User prompt
scorebg should be over coconuts
User prompt
add points when coconuts are destroyed. make game harder de more coconuts are destroyed
User prompt
explosion asset should show for half a second
User prompt
explosion asset sould appear for only 1 second
User prompt
show explosion asset when coconut is destroyed
User prompt
add explosion when coconut explodes
===================================================================
--- original.js
+++ change.js
@@ -35,9 +35,9 @@
self.speed = 10 + Math.floor(score / 10);
};
self._move_migrated = function () {
self.y += self.speed;
- self.rotation += 0.05 * Math.random();
+ self.rotation += 0.05 * (Math.random() < 0.5 ? -1 : 1);
};
});
var Player = Container.expand(function () {
var self = Container.call(this);
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.