User prompt
After calculating total grid size, use this information to move boardBackground such that it's centered behind the board
User prompt
After calculating total grid size, use this information to center boardBackground on the board.
User prompt
set boardBackground such that it's centered in behind the tiles
User prompt
Do not set boardBackground x and y
User prompt
Add a board background graphics element, attach this at the first thing to the grid container in game
User prompt
Add a board background graphics element, attach this at the first thing to the cell container
User prompt
Set cell background graphics alpha to zero
User prompt
In call before adding cellGraphics add another graphical element with the type cell
User prompt
Only allow cells with at-least one similar neighbor to be matched
User prompt
Decrease the max speed of snowflakes half
User prompt
Make snowflake scale be influenced by y speed
User prompt
Give snowflakes random rotation and rotation speed
User prompt
When setting y speed math.abs it
User prompt
Make sure yspeed is always set to a random positive value between 2 and 5. Do not change x speed
User prompt
Speedy should always be a positive value
User prompt
Snake flake speed y should always be a random value between 5 and 25
User prompt
Use add child at 1 to attach snowflake layer
User prompt
Add background graphics to the game, center it
User prompt
Add snowflake container using add child at, below grid container
User prompt
Attach snowflakes to zindex below grid container
User prompt
Add a container to game. Just use a simple container. Then attach all snow flakes to this container
User prompt
Add snow to the background
User prompt
Fix Bug: 'TypeError: setTimeout is not a function. (In 'setTimeout(self.changeWind, Math.random() * 3000 + 2000)', 'setTimeout' is undefined)' in this line: 'setTimeout(self.changeWind, Math.random() * 3000 + 2000);' Line Number: 88
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'self.addChild')' in this line: 'self.addChild(snowflake);' Line Number: 81
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'self.snowflakes = []')' in this line: 'self.snowflakes = [];' Line Number: 76
===================================================================
--- original.js
+++ change.js
@@ -93,8 +93,10 @@
gridContainer.addChildAt(boardBackground, 0);
self.addChild(gridContainer);
var totalGridWidth = gridWidth * (cellWidth + gridSpacing) - gridSpacing;
var totalGridHeight = gridHeight * (cellHeight + gridSpacing) - gridSpacing;
+ gridContainer.x = (2048 - totalGridWidth) / 2 + cellWidth / 2;
+ gridContainer.y = (2732 - totalGridHeight) / 2 + cellHeight / 2;
boardBackground.x = totalGridWidth / 2;
boardBackground.y = totalGridHeight / 2;
self.calculateTargetPosition = function (col, row) {
return {
Cartoon Christmas decoration Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cartoon Christmas candy cane Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cartoon Christmas stocking Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cartoon Christmas yellow starr Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cartoon Christmas ornament Blue Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cartoon Christmas snow flake. Blue Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cartoon Christmas outdoor scene. Forest, northern lights. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
White square. Narrow round corners. Background element. Flat. Vector. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cartoon Christmas heart Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Simple Cartoon Christmas particle. White. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cartoon Christmas ornament yellow and purple Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cartoon Christmas snow man head. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Simple Cartoon Christmas wreath. Purple Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.