User prompt
rudolph should move all over the screen
User prompt
rudolph must appear on screen right after the present count is 0
User prompt
when santa collides with rudolph add 20 presents to counter
User prompt
rudolph should appear when present count is 0
User prompt
hide rudolph when game starts
User prompt
rudolph will appear in the screen only when present count is equal to 0
User prompt
when santa collides with rudolph present counter should go back to 20
User prompt
rudolph should move randomly on the top part of the screen but below the score
User prompt
create rudolph. rudolph will bring presents once santa runs out of them. he will appear in the upper part of the screen. once santa collides with rudoph, the present counter will go back to 20.
User prompt
move presenticon 200 pixels higher
User prompt
move presents 300 px higher
User prompt
show presents counter with an icon and the number of presents left
User prompt
move presents icon to the left
User prompt
move presents below lives
User prompt
change lives text to be displayed by 3 icons that will be decreased
User prompt
change presents text for an icon
User prompt
show presents count on the top of the screen
User prompt
move presents counter to be shown below lives
User prompt
make sure presents counter is visible on screen
User prompt
move presents counter to the bottom left
User prompt
move presents counter down 200 pixels
User prompt
move presents counter down 20 pixels
User prompt
show present counter under the lives counter
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'startsWith')' in this line: 'if (child.text.startsWith('Presents: ')) {' Line Number: 28
User prompt
santa can only carry 20 presents at a time. every time santa throws a present the counter is reduced by one. when the present counter is 0, no more presents can be thrown. show the present counter on the top of the screen
===================================================================
--- original.js
+++ change.js
@@ -7,17 +7,12 @@
var maxY = LK.gui.topCenter.y + LK.gui.topCenter.height;
var minY = 0;
var maxX = 2048;
var minX = 0;
- if (self.y < maxY) {
- self.y += Math.random() * 10 - 5;
- self.x += Math.random() * 10 - 5;
- self.y = Math.max(minY, Math.min(self.y, maxY));
- self.x = Math.max(minX, Math.min(self.x, maxX));
- } else {
- self.y = maxY;
- self.x = 2048 / 2;
- }
+ self.y += Math.random() * 10 - 5;
+ self.x += Math.random() * 10 - 5;
+ self.y = Math.max(minY, Math.min(self.y, 2732));
+ self.x = Math.max(minX, Math.min(self.x, 2048));
};
});
var LifeIcon = Container.expand(function () {
var self = Container.call(this);
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.