User prompt
present should be shoot downards
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'push')' in this line: 'this.parent.parent.presents.push(present);' Line Number: 13
User prompt
Fix Bug: 'ReferenceError: presents is not defined' in this line: 'for (var i = 0; i < presents.length; i++) {' Line Number: 83
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'push')' in this line: 'this.parent.presents.push(present);' Line Number: 13
User prompt
on click drop a present
User prompt
chimneys need to be separated from each other
User prompt
chimey should move from left to right, there should always be 5 chimney on screen
User prompt
santa should start on the top of the screen
User prompt
chimney should appear in the lower part of the screen
User prompt
Fix Bug: 'TypeError: chimneys[i].checkCollision is not a function' in this line: 'chimneys[i].checkCollision();' Line Number: 69
User prompt
chimney should be created on the left of the screen and move to the right and disappear once it reached the threshold
User prompt
chimney should move from left to right
User prompt
santa should follow mouse
User prompt
santa should move freely
User prompt
Fix Bug: 'TypeError: santa.update is not a function' in this line: 'santa.update();' Line Number: 37
Initial prompt
Paper Santa
===================================================================
--- original.js
+++ change.js
@@ -9,9 +9,9 @@
var present = new Present();
present.x = this.x;
present.y = this.y;
this.parent.addChild(present);
- this.parent.presents.push(present);
+ this.parent.parent.presents.push(present);
};
});
var Present = Container.expand(function () {
var self = Container.call(this);
@@ -50,9 +50,9 @@
var self = Container.call(this);
var santa = self.addChild(new Santa());
santa.x = 2048 / 2;
santa.y = 0;
- var presents = [];
+ self.presents = [];
var chimneys = [];
var hazards = [];
var scoreTxt = new Text2('0', {
size: 150,
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.