User prompt
add scorebg behind score
User prompt
create asset for score background
User prompt
chimnes should start spawning from x = 0
User prompt
gifts should be dropped every 2 seconds
User prompt
on game start chimneys should already be spawned across all x axis with the same current spacing.
User prompt
santa should drop present every one second
User prompt
make sure santa moves on tick to the next spot using move funciont
User prompt
santa should move to the next touch place
User prompt
add self move to santa to move him from one position to another
User prompt
show santas trayectory from one point ot another
User prompt
on tick move santa to the next click poosition
User prompt
On tick move santa to the next position based on touch.
User prompt
Show santa movement on screen
User prompt
Fix Bug: 'Uncaught ReferenceError: touchArea is not defined' in this line: 'touchArea.on('down', function (obj) {' Line Number: 131
User prompt
Move santa on touch
User prompt
Fix Bug: 'TypeError: LK.tweenTo is not a function' in this line: 'LK.tweenTo(santa, {' Line Number: 127
User prompt
Show santas transition to next touch
User prompt
Instead of draging santa follow next touch
User prompt
Drop one gift per second
User prompt
Move santa to click position
User prompt
Santa auto shoots every second
User prompt
score should be added by 1
User prompt
when santa collide wiht clouud, it should turn yellow
User prompt
change of score to a more gamy one
User prompt
change score font to 8 bit retro
===================================================================
--- original.js
+++ change.js
@@ -168,8 +168,12 @@
LK.gui.topLeft.addChild(presentIcon);
}
var maxChimneys = 5;
LK.on('tick', function () {
+ var currentTick = LK.ticks;
+ if (currentTick % 60 === 0) {
+ santa.throwPresent();
+ }
self.toppers = self.toppers.filter(function (topper) {
return topper.x + topper.width > 0;
});
self.toppers.forEach(function (topper) {
@@ -272,12 +276,5 @@
if (pos.y < 2732 * 0.8 && pos.y > 2732 * 0.2) {
santa.move(pos);
}
});
- stage.on('up', function (obj) {
- var currentTime = Date.now();
- if (currentTime - santa.lastTapTime <= 500) {
- santa.throwPresent();
- }
- santa.lastTapTime = 0;
- });
});
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.