User prompt
every time rudolph spawns it should start moving in circles
User prompt
rudolph should move in cirles once he spawns
User prompt
rudolph should spawn randomly anywhere in the top half of the screen
User prompt
rudolph should spawn in the center of the screen
User prompt
rudolph should move from the right to the left of the screen
User prompt
update rudolph spawn and movement. it should spawn and move randomly on the top half of the screen
User prompt
when santa collides with rudolph, present count should go to 10 and rudolph should be destroyed
User prompt
rudolph should not appear on game start
User prompt
rudolph should only appear when present count is 0
User prompt
rudolph should appear when present count is 0
User prompt
rudolph should apprear on game start
User prompt
there should always be one rudolph on the screen
User prompt
spawn rudolph on the right on the top half of the screen with movement towards the left
User prompt
delete rudolph
User prompt
update present count to 10 when santa collides with rudolph
User prompt
when player collides with rudolp present count should go up to 10
User prompt
rudolph should move randomly all arround the top half of the screen
User prompt
decrese present counter to 10
User prompt
rudolph should move randomly on the top halp of the screen
User prompt
Fix Bug: 'ReferenceError: rudolph is not defined' in this line: 'if (rudolph.intersects(santa)) {' Line Number: 217
User prompt
rudolph should allways be visible
User prompt
show rudolph in the center of the screen when the game starts
User prompt
show rudolph on game start
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'move')' in this line: 'this.rudolph.move();' Line Number: 220
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'move')' in this line: 'rudolph.move();' Line Number: 220
===================================================================
--- original.js
+++ change.js
@@ -35,10 +35,10 @@
this.parent.presentCounterTxt.setText(this.presentCounter.toString());
}
if (this.presentCounter === 0 && !this.parent.rudolph) {
this.parent.rudolph = this.parent.addChild(new Rudolph());
- this.parent.rudolph.x = 2048 / 2 - this.parent.rudolph.width / 2;
- this.parent.rudolph.y = 2732 / 2 - this.parent.rudolph.height / 2;
+ this.parent.rudolph.x = Math.random() * 2048;
+ this.parent.rudolph.y = Math.random() * (2732 / 2);
}
};
});
var Present = Container.expand(function () {
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.