User prompt
the score UI is broken. make sure it starts from 0 then 1 point is added for every collected gift
User prompt
the score text is not visible on the screen. make sure it appears at the top side of the screen
User prompt
move the paddle 200 pixels higher
User prompt
move the paddle 1000 pixels lower
User prompt
add a background to the game that stretches across the entire screen
User prompt
santa position is too high up omn the screen, lower him by 200 pixels
User prompt
santa does flip his asset when touching the edge, problem is it only starts doing that after touching the left side of the screen. however, since he starts moving from the center of the screen and starts traveling right, it touchies the right side of the screen first so he should flip then
User prompt
when santa hits the edge of the screen, flip horizontally his graphic asset
User prompt
decrease acceleration to 0.25
User prompt
now the score UI disppeared all together I cant even see it on the screen anymore
User prompt
the score is still broken. it starts from 0 but after colecting 1 gift, the text updates to 1, but the 0 also remaisn on screen. after which, collecting more gifts never updates the score anymore, I only see 1 overlapping 0
User prompt
the score is bugged, I see both a 0 and a 1, and the text never updates
User prompt
fix the score, as the UI never updates. start from 0 and add +1 for every collected gift
User prompt
change 45 to 60 if (tickOffset++ % 45 == 0) {
User prompt
instead of dropping a new element every second, reduce that to 500 miliseconds
User prompt
drop a new element once every 500 miliseconds
User prompt
add acceleration to the falling speed of both gifts and coals. they start from the current speed but should accelerate as they fall
User prompt
reduce the paddle's movement speed by 20%
User prompt
instead of dropping an item every 2 seconds, reduce that to once every 1.5 seconds
User prompt
now add a new asset called Coal, that behaves similarly to the giftts. it has the same properties, with the expection that when it touches the paddle, the game is over and this one offers no points towards the score. santa has a 50%-50% chance to drop either a gift or a Coal when it's time to release something
User prompt
now instead of dropping gifts every 2 seconds, create a range between 1 and 2 seconds, so a new gift can be dropped either once ever 1 second, every 2 seconds or any other time between that range
User prompt
increase the paddle speed by 50%
User prompt
when the gifts touch the paddle, remove them from the game as they are collected by the player. add 1 point to the score
User prompt
double the falling speed of the gifts
User prompt
now instead of having to tap santa to drop gifts, make it drop them automatically once every 2 seconds
===================================================================
--- original.js
+++ change.js
@@ -36,16 +36,16 @@
var santaGraphics = self.createAsset('santa', 'Santa Graphics', .5, .5);
self.speed = 10;
var santaTickOffset = 0;
self.move = function () {
- if (self.x - santaGraphics.width / 2 <= 0) {
+ if (self.x + santaGraphics.width / 2 >= 2048) {
santaGraphics.scale.x = -1;
- self.x = santaGraphics.width / 2;
- self.speed = Math.abs(self.speed);
- } else if (self.x + santaGraphics.width / 2 >= 2048) {
- santaGraphics.scale.x = 1;
self.x = 2048 - santaGraphics.width / 2;
self.speed = -Math.abs(self.speed);
+ } else if (self.x - santaGraphics.width / 2 <= 0) {
+ santaGraphics.scale.x = 1;
+ self.x = santaGraphics.width / 2;
+ self.speed = Math.abs(self.speed);
}
self.x += self.speed;
if (++santaTickOffset % 30 == 0) {
self.speed *= -1;
black coal. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. pixelated. 8 bit
white snowy valley background. Single Game Texture. In-Game asset. 2d. High contrast. No shadows. pixelated. 8 bit
santa sled. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. pixelated. 8 bit
Christmas gift. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. pixelated. 8 bit
text saying "HO". mistletoe themed. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. pixelated. 8 bit
excited kid seen from the front, holding both of his hands extended upwards expecting to catch.looking upward. dressed for Christmas. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. pixelated. 8 bit