User prompt
when a coconut reaches y = 700 spawn generalshadow at y = 350
User prompt
create new asset names generalshadow. just an asset
Code edit (2 edits merged)
Please save this source code
User prompt
when a coconut is in y = 700 then spawn objectshado in the same x as the coconut and on y = 350
User prompt
show object shadow unnder every coconut on the y = 350 position when each coconut reaches the y =700 position.
User prompt
create a new asset called objectshadow
User prompt
coconut shadow should be created in the same x as the coconut, but y should be fixed to 350. shadow will not move.
User prompt
create coconutshadow asset. only an asset.
User prompt
create particles when coconuts are destoryed
User prompt
Add gravity effect to the particle tick function
User prompt
Tick particles in the tick function of the Game class
User prompt
Remove particles from the global particles array when they are destroyed
User prompt
Add particles to the global particles array when they are created
User prompt
Create a global array to track particles
User prompt
Implement createParticleEffect method in Game class to handle particle creation
User prompt
Add particle effects when destroying coconuts
User prompt
Create a Particle class for particle effects when coconuts are destroyed
User prompt
Add particle effects when destroying coconust
User prompt
make sure particles have an expsosion efect
Code edit (1 edits merged)
Please save this source code
User prompt
create particle effect when coconut is destroyed
User prompt
create shadow2 asset
User prompt
coconut shadow should not move with coconut. I just needs to appear in the 350 Y position below the coconut.
Code edit (1 edits merged)
Please save this source code
User prompt
coconut shadow should spawn in y = 350
===================================================================
--- original.js
+++ change.js
@@ -85,8 +85,12 @@
coconut.move();
if (coconut.y > 2732 - 200) {
coconut.destroy();
coconuts.splice(a, 1);
+ } else if (coconut.y >= 700) {
+ var generalShadow = LK.getAsset('generalshadow', 'General Shadow Graphics', .5, .5);
+ generalShadow.y = 350;
+ self.addChild(generalShadow);
}
}
if (LK.ticks % 60 == 0) {
var newCoconut = new Coconut();
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.