User prompt
add random movement to rudolph
User prompt
reset rudolph movement
User prompt
rudolph asset should move uppon spawning. its movement will be random within the current spawn limits
User prompt
add blink effect when present collides with hazzard
User prompt
when santa collides with a hazard, santa asset should blink
User prompt
increase game difficulty every time the present counter gets to 0
User prompt
santa cant move in the top 20% of the screen
User prompt
set present counter to 5
User prompt
Fix Bug: 'TypeError: self.getChildByName is not a function' in this line: 'var santaGraphics = self.getChildByName('Santa character');' Line Number: 37
User prompt
Fix Bug: 'TypeError: Cannot set properties of undefined (setting 'tint')' in this line: 'self.graphics.tint = 0xFF0000;' Line Number: 37
User prompt
Fix Bug: 'TypeError: self.getChildByName is not a function' in this line: 'var santaGraphics = self.getChildByName('Santa character');' Line Number: 37
User prompt
when santa collides with a hazard make the santa asset turn red for a second
User prompt
Triple the speed of the hazards every time rudolph respawns in each game
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'maxTouchPoints')' in this line: 'if (('ontouchstart' in window) || navigator.maxTouchPoints && navigator.maxTouchPoints > 0) {' Line Number: 262
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'maxTouchPoints')' in this line: 'if (('ontouchstart' in window) || navigator.maxTouchPoints > 0) {' Line Number: 262
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'maxTouchPoints')' in this line: 'if (('ontouchstart' in window) || navigator.maxTouchPoints) {' Line Number: 262
User prompt
Fix Bug: 'Uncaught TypeError: LK.isMobile is not a function' in this line: 'if (LK.isMobile()) {' Line Number: 262
User prompt
Santa will auto shoot in mobile devices
User prompt
For mobile control present should be thrown on second touch of the screen
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'removeChild')' in this line: 'intersectedHazard.parent.removeChild(intersectedHazard);' Line Number: 77
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'removeChild')' in this line: 'this.parent.removeChild(this);' Line Number: 74
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'removeChild')' in this line: 'this.parent.removeChild(this);' Line Number: 74
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'removeChild')' in this line: 'this.parent.removeChild(this);' Line Number: 72
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'removeChild')' in this line: 'this.parent.removeChild(this);' Line Number: 72
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'removeChild')' in this line: 'this.parent.removeChild(this);' Line Number: 72
===================================================================
--- original.js
+++ change.js
@@ -119,14 +119,14 @@
self.y += self.speedY;
var screenWidth = 2048;
var screenHeight = 2732;
var margin = 100;
- if (self.x < margin || self.x > screenWidth - margin) {
- self.speedX *= -1;
+ if (self.x < margin || self.x > screenWidth - margin || self.y < margin || self.y > screenHeight - margin) {
+ self.x = Math.random() * screenWidth;
+ self.y = Math.random() * (screenHeight * 0.55 - screenHeight * 0.2) + screenHeight * 0.2;
+ self.speedX = (Math.random() * 2 - 1) * this.parent.hazardSpeed;
+ self.speedY = (Math.random() * 2 - 1) * this.parent.hazardSpeed;
}
- if (self.y < margin || self.y > screenHeight - margin) {
- self.speedY *= -1;
- }
};
});
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.