User prompt
move presentdisplay 50 to the right and 50 down
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught TypeError: presentTypeDisplay is not a constructor' in this line: 'var presentTypeDisplay = self.addChild(new presentTypeDisplay());' Line Number: 219
Code edit (11 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught ReferenceError: PresentTypeDisplay is not defined' in this line: 'var presentTypeDisplay = self.addChild(new PresentTypeDisplay());' Line Number: 219
Code edit (1 edits merged)
Please save this source code
User prompt
move rotating background tick to game
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught Error: [object Object]addChildAt: The index 2 supplied is out of bounds 1' in this line: 'self.addChildAt(background, 2);' Line Number: 214
User prompt
Fix Bug: 'Uncaught Error: [object Object]addChildAt: The index 1 supplied is out of bounds 0' in this line: 'self.addChildAt(rotatingBackground, 1);' Line Number: 212
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
===================================================================
--- original.js
+++ change.js
@@ -114,9 +114,9 @@
presentTypes.push('presentType' + (i + 1));
}
self.setRandomPresentTypeIndex = function () {
var presentTypeIndex = Math.floor(Math.random() * presentTypesCount);
- var displayGraphic = self.createAsset(presentTypes[presentTypeIndex], presentTypes[presentTypeIndex] + ' Graphics', 0.5, 0.5);
+ var displayGraphic = self.createAsset(presentTypes[presentTypeIndex], presentTypes[presentTypeIndex] + ' Graphics', 0, 0);
displayGraphic.scale.x = 1.5;
displayGraphic.scale.y = 1.5;
if (self.children.length > 0) {
self.removeChildAt(0);
@@ -213,13 +213,13 @@
var background = new Background();
self.addChildAt(background, 1);
var mainContainer = new MainContainer();
self.addChild(mainContainer);
+ var presentDisplay = self.addChild(new presentTypeDisplay());
+ presentTypeDisplay.x = 800;
+ presentTypeDisplay.y = 350;
var santaSack = new SantaSack();
self.addChild(santaSack);
- var presentDisplay = self.addChild(new presentTypeDisplay());
- presentTypeDisplay.x = 580;
- presentTypeDisplay.y = 300;
var level = self.levelManager.getCurrentLevel();
var presentTypesCount = 2;
if (level >= 5 && level <= 8) {
presentTypesCount = 4;
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.