User prompt
the grinch should spawn form the left side of the screen instead of the middle, account for the height and width of the asset
User prompt
spawn the grinch 40 pixels form the left of the screen
User prompt
spawn the grinch 10 pixels form the left of the screen
User prompt
the grinch should spawn in at the left of the screen instead of the middle
User prompt
account for the height and width of the present and chimney
User prompt
only give score when the top of the chimney asset is touched
Code edit (1 edits merged)
Please save this source code
User prompt
increase the speed of the chimneys everytime with 0.5
User prompt
increase the speed by 0.4
User prompt
when the grinch despawntimer is done, dont immediately despawn it, move it to the nearest side off screen
User prompt
when intersection with the grinch is detected, remove the present.
User prompt
when intersection with the grinch is detected, remove the present
User prompt
make a detection for when the grinch touches a present
User prompt
when a gift touches the grinch it shouldnt create an area where all the present that go trough there disappear. it should only despawn when touching the grinch and when the grinch is not there dont despawn any present because of those areas.
User prompt
add a powerup that spawns randomly every 40 seconds. the x coord should be diffferent every time but the y coordinate should be 1500
User prompt
the gifts should still despawn when touching the grinch but if the grinch is no spawned in the gifts can despawn because of him because he is not there
User prompt
stop the gifts from randomly despawning for reasons provided above
User prompt
the grinch should still despawn after 10 seconds
User prompt
after the grinch is gone continue all activities as before
User prompt
the grinch moves from side to side with a speed of 12(account for the width of the asset), when the grinch touches a present the present despawns. the grinch should spawn every 30 seconds and he should disappear after 10 seconds.
User prompt
if the grinch is not spawned, presents should be able to reach the chimney
User prompt
when the grinch is not spawned he cant make presents disappear
User prompt
the grinch should move with a speed of 12
User prompt
when the grinch touches a present the present will disappear
User prompt
the grinch should move with a speed of 8
===================================================================
--- original.js
+++ change.js
@@ -126,9 +126,9 @@
LK.clearInterval(chimneySpawnInterval);
}
if (LK.ticks - lastGrinchSpawnTick >= 1800) {
var newGrinch = self.addChild(new Grinch());
- newGrinch.x = 40;
+ newGrinch.x = 0 + newGrinch.width / 2;
newGrinch.y = 2732 / 2;
grinches.push(newGrinch);
lastGrinchSpawnTick = LK.ticks;
}
chimney. pixelart. residential chimney. only chimney. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift. pixelart. christmas. green and red. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
night sky. pixelart. seamless. clouds. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixelart. christmas. santa in sleigh. from the side. flying. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
grinch. green monster. pixelart. only face. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixelart. chistmas present. powerup. game art Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.