User prompt
Fix Bug: 'ReferenceError: gifts is not defined' in this line: 'for (var i = 0; i < gifts.length; i++) {' Line Number: 18
User prompt
after the lunge the movement should continue as normal, if another present is spotted lunge again.
User prompt
the grinch should lunge fast to a present on the x axis. max speed of 10. if the grinch touches the present it should dissapear.
User prompt
fix it like stated above
User prompt
if the grinch touches the right side of the screen it should start moving to the left again. if it touches the left side it should also go the other way
User prompt
a new grinch shouldnt be spawned unless there is none
User prompt
Fix Bug: 'TypeError: newGrinch.startDisappearTimer is not a function' in this line: 'newGrinch.startDisappearTimer();' Line Number: 120
User prompt
the grinch shouldnt dissapear after 5 seconds
User prompt
Fix Bug: 'ReferenceError: grinchList is not defined' in this line: 'for (var i = grinchList.length - 1; i >= 0; i--) {' Line Number: 130
User prompt
Fix Bug: 'ReferenceError: grinchList is not defined' in this line: 'for (var i = grinchList.length - 1; i >= 0; i--) {' Line Number: 130
User prompt
fix it so the grinch is moving from side to side
User prompt
the grinch should slowely move from side to side, with a speed of 1
User prompt
when the grinch is active and a present is thrown, the grinch will lunge at the santa. the santa will fall out of the sky and game over
User prompt
change the speed from 0.02 to 0.1
User prompt
the grinch dissapears again after 5 seconds
User prompt
every 20 seconds a new object will spawn in the middle of the screen called the grinch
User prompt
increase the speed by 0.02 instead of the old value
Code edit (1 edits merged)
Please save this source code
User prompt
when the score is -1 scale the asset down
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: scoreTxt.setSize is not a function' in this line: 'scoreTxt.setSize('90');' Line Number: 126
User prompt
Fix Bug: 'TypeError: scoreTxt.setsize is not a function' in this line: 'scoreTxt.setsize('90');' Line Number: 126
Code edit (1 edits merged)
Please save this source code
User prompt
make the fontsize of the score smaller
User prompt
Fix Bug: 'TypeError: scoreTxt.setSize is not a function' in this line: 'scoreTxt.setSize(100);' Line Number: 126
===================================================================
--- original.js
+++ change.js
@@ -123,9 +123,9 @@
if (score < 0) {
isGameOver = true;
if (score == -1) {
scoreTxt.setText('You disappointed too many kids');
- scoreTxt.scale.set(0.8);
+ scoreTxt.scale.set(0.6);
}
}
LK.effects.flashScreen(0xff0000, 1000);
spawnChimney();
@@ -144,9 +144,9 @@
chimney.touchedByGift = true;
LK.effects.flashScreen(0x00ff00, 500);
gift.destroy();
gifts.splice(i, 1);
- chimneySpeed += 0.5;
+ chimneySpeed += 0.02;
spawnChimney();
break;
}
}
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.