User prompt
present topper should move at the same speed and direction as the chimney
User prompt
add a permanent asset right on top of the chimney once the present has been delivered
User prompt
change the color of the chimney once it has collided with a present. it should grey out
User prompt
increase game difficulty
User prompt
random mover should reduce it movement area to the midel 60% of the screen
User prompt
when santa collides with randommover present count should go back to 5 and randommover should be hidden
User prompt
Fix Bug: 'TypeError: Cannot set properties of undefined (setting 'visible')' in this line: 'this.parent.parent.rudolph.visible = false;' Line Number: 76
User prompt
Fix Bug: 'ReferenceError: rudolph is not defined' in this line: 'rudolph.move();' Line Number: 256
User prompt
Fix Bug: 'TypeError: Cannot set properties of undefined (setting 'visible')' in this line: 'this.parent.rudolph.visible = false;' Line Number: 76
User prompt
hide randommover until present count is equal to 0
User prompt
rename randomMover to rudolph
User prompt
delete rudolph from game
User prompt
random mover should bounce on the screen limits
User prompt
randommover should only move below the top 20% of the screen and above the bottom 20%
User prompt
incresase speed of random mover by 4 times
User prompt
add new asset that moves randomly all over the screen
User prompt
add movement to rudolph
Code edit (1 edits merged)
Please save this source code
User prompt
only add point and show present delivery effect if the present hits the top 10% of the chimney
User prompt
if present collides with the side of the chimney it should not add a point to the score and the present should blink and not show the present delivery effect
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'forEach')' in this line: 'this.parent.chimneys.forEach((function (chimney) {' Line Number: 82
User prompt
Fix Bug: 'ReferenceError: chimneys is not defined' in this line: 'chimneys.forEach((function (chimney) {' Line Number: 82
User prompt
if present collides with the side of the chimney it should not add a point to the score and the present should blink and not show the present delivery effect. only add a point and show the present delivery effect when it touches the top 10% of the chimney
User prompt
if present collides with the side of the chimney it should not add a point to the score and the present should blink and not show the present delivery effect
User prompt
rudolph should move
===================================================================
--- original.js
+++ change.js
@@ -1,4 +1,8 @@
+var PresentTopper = Container.expand(function () {
+ var self = Container.call(this);
+ var topperGraphics = self.createAsset('presentTopper', 'Present Topper', 0.5, 1);
+});
var RandomMover = Container.expand(function () {
var self = Container.call(this);
var moverGraphics = self.createAsset('randomMover', 'Random Mover', 0.5, 0.5);
self.speedX = (Math.random() * 4 - 2) * 4;
@@ -202,8 +206,12 @@
deliveryEffect.animate();
var newScore = LK.getScore() + 1;
LK.setScore(newScore);
scoreTxt.setText(newScore.toString());
+ var presentTopper = new PresentTopper();
+ presentTopper.x = chimney.x;
+ presentTopper.y = chimney.y - chimney.height;
+ self.addChild(presentTopper);
}
});
});
chimneys = chimneys.filter(function (chimney) {
8-bit cloud with lightning. in game asset. white cloude. yellow lighning. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8 bit x mas pressent. in game asset. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
8-bit. cartoon. santa on sledge. smiling. in game asset. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.