Code edit (1 edits merged)
Please save this source code
User prompt
define background out side of game
Code edit (1 edits merged)
Please save this source code
User prompt
place centre of rotating background at centre of screen
Code edit (2 edits merged)
Please save this source code
User prompt
resolve issue with rotating background
User prompt
show rotating background
Code edit (1 edits merged)
Please save this source code
User prompt
centre rotating backgound image on middle of screen
User prompt
add behind background image a slow rotating image
Code edit (2 edits merged)
Please save this source code
User prompt
set a variable that can be used in create presents to change number produced
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught ReferenceError: presentTypesCount is not defined' in this line: 'self.createPresents(presentTypesCount, mainContainer);' Line Number: 213
User prompt
clean code
Code edit (3 edits merged)
Please save this source code
User prompt
remove snowflake code
Code edit (1 edits merged)
Please save this source code
User prompt
remove reference to level manager for snowflakes
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'splice')' in this line: 'self.balls.splice(i, 1);' Line Number: 255
Code edit (2 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'push')' in this line: 'self.balls.push(presentType);' Line Number: 245
User prompt
Fix Bug: 'Uncaught TypeError: LevelManager is not a constructor' in this line: 'self.levelManager = new LevelManager();' Line Number: 212
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: Present is not defined' in this line: 'if (child instanceof Present) {' Line Number: 48
===================================================================
--- original.js
+++ change.js
@@ -206,15 +206,15 @@
});
var Game = Container.expand(function () {
var self = Container.call(this);
self.presents = [];
- var mainContainer = new MainContainer();
- self.addChild(mainContainer);
self.levelManager = LevelManager;
var rotatingBackground = new RotatingBackground();
self.addChildAt(rotatingBackground, 0);
var background = new Background();
self.addChildAt(background, 1);
+ var mainContainer = new MainContainer();
+ self.addChild(mainContainer);
var santaSack = new SantaSack();
self.addChild(santaSack);
var level = self.levelManager.getCurrentLevel();
var presentTypesCount = 2;
basic snowflake. white Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
open top of Santa's sack. wrapped presents with ribbons and box, vivid colours, candy canes Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
close up of a Snow covered roof, Winter scene, star lit night sky, brick chimbly on right hand side, Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
stary night sky.dark blue. no land. only sky Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Candy cane, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, vivid colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
old paper scroll, blank with no writing, Single Game Texture. In-Game asset. 2d. transparent Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
rudolf the red nose raindeer Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
gift wrapped box, bright colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture.
gift wrapped box, bright light colours. with bow on top Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows. Single Game Texture.
Santa's sleigh with a team of reindeer moving across a star light sky. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.