User prompt
for a present collision to count as collision with a chimney, the present has to land on the top of the chimney
User prompt
move chimneys 200 pixels up
User prompt
move chimneys 150 pixels down
User prompt
move chimneys 400 pixels down
User prompt
move chimenys 400 px down
User prompt
hazard spawn ratio should be twice as much in the bottom part of the screen
User prompt
add movement to rudolph after it spawns. movement will be determined randomly.
User prompt
rudolps should spawn in the center of the screen when present count is 0
User prompt
make sure there is only one rudolph class
User prompt
rudolph should spawn in the center of the screen
User prompt
create rudolph once the game starts
User prompt
rudolph has to move from one side of the screen to the other non stop at a fast speed
User prompt
rudolph should always be on screen when present count is 0
User prompt
rudolph should spawn on the left side and move to the right of the screen
User prompt
space between chimneys should always be the same
User prompt
hazards should oscilate up and down
User prompt
when rudolph spawns add movement to it. it should move faster than any other element on the screen in cicles
User prompt
optimize game code to improve performance
User prompt
add a pause button on the screen that will pause the game when you press it
User prompt
add a pause button
User prompt
every time rudolph spawn count increases, duplicate the speed of hazards
User prompt
add a counter to rudolph spawns per game. every time rudolps spawn is increased the hazards speed is increased.
User prompt
update rudolph movement. it should move in circles at a fast speed
User prompt
every time Rudolph spawns it should start moving in zig zag in the screen
User prompt
rudolph is always moving in big circles
===================================================================
--- original.js
+++ change.js
@@ -90,14 +90,11 @@
self.angle = 0;
self.radius = 200;
self.speed = 0.05;
self.move = function () {
- self.angle += self.speed;
- self.x += Math.cos(self.angle) * self.radius;
- self.y += Math.sin(self.angle) * self.radius;
- if (self.x > 2048 || self.x < 0) {
- self.speed *= -1;
- }
+ self.angle += self.speed * 4;
+ self.x = 1024 + Math.cos(self.angle) * self.radius;
+ self.y = 1366 + Math.sin(self.angle) * self.radius;
};
});
var Game = 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.