Code edit (1 edits merged)
Please save this source code
User prompt
For bottom row of cells set them so Zbert is innfront of cells and not behind cells
Code edit (6 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught TypeError: self.sortChildren is not a function' in or related to this line: 'self.sortChildren();' Line Number: 39
User prompt
add Z factor to Zbert to bring him in front of grid
User prompt
when Zbert moves to a new cell, center Zbert in middle of tile
User prompt
correct Zbert movement code so that Zbert will move to a clicked cell and tile will flip
User prompt
Fix Bug: 'TypeError: game.grid.getChildByName is not a function' in or related to this line: 'var zbert = game.grid.getChildByName('Zbert');' Line Number: 124
User prompt
when cell is clicked move Zbert to cell and run tileflip
User prompt
Correct the code so that when joystick is moved then Zbert will move on the grid
User prompt
attach a visual joystick assets to allow interaction with joystick
User prompt
display joystick on screen to allow touch control
User prompt
show joystick on screen
User prompt
correct code to set Zberts starting position to first cell on bottom row on left
User prompt
Fix Bug: 'Uncaught TypeError: game.grid.getChildByName is not a function' in or related to this line: 'var zbert = game.grid.getChildByName('Zbert');' Line Number: 299
User prompt
Add joystick control that allows you to move Zbert around grid diagonally only
Code edit (1 edits merged)
Please save this source code
User prompt
delete shapedisplay code
User prompt
change fliptile routine so that it just flips the clicked tile rather than using shape data. Still retain the red highlight before it flips to green
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught ReferenceError: gridSize is not defined' in or related to this line: 'self.gridSize = gridSize;' Line Number: 181
User prompt
Fix Bug: 'Uncaught ReferenceError: gridSize is not defined' in or related to this line: 'self.color = gridX === gridSize - 1 && gridY === 0 ? 0x33d62a : 0xFFFFFF; // Set all cells to white apart from the cell Zbert is on in the bottom left corner, set this cell to green' Line Number: 181
User prompt
Fix Bug: 'Uncaught ReferenceError: i is not defined' in or related to this line: 'self.color = i === this.gridSize - 1 && j === 0 ? 0x33d62a : 0xFFFFFF; // Set all cells to white apart from the cell Zbert is on in the bottom left corner, set this cell to green' Line Number: 181
User prompt
When grid is initiated sett all cells to white apart from cell Zbert is on in bottom left corner. set this cell to green
Code edit (4 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -34,9 +34,9 @@
// Attach Zbert to the left hand bottom grid cell
if (i === this.gridSize - 1 && j === 0) {
var zbert = new Zbert(tile.x, tile.y - 130, 180, 180);
self.addChild(zbert);
- zbert.zIndex = 10;
+ zbert.zIndex = 11;
}
// Update color counts
if (tile.color === 0xFFFFFF) {
tileColorCounter.whiteCount++;
beautiful landscape. starry sky, pastel colours, high definition, alien world. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
beautiful landscape. starry sky, pastel colours, high definition, alien world.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
beautiful expansive landscape. starry sky, pastel colours, high definition, alien world.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
beautiful expansive landscape. starry sky, pastel colours, high definition, alien world.. 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.
A little cube person. 2 legs. back to viewer. facing 45 degrees to the right. multicoloured skin, cartoon style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white circle. metallic. light bevel on edge. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Round furry, cute alien ball with big eyes. vivid colours, looking at 45 degrees to the right. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
bright 3d present with bow, vivd colours. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Change to be vivid multicoloured cube
A simple Triangle, flat shaded, bevelled edges. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Speech bubble with expletive word in it. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
parachute. multicoloured. cartoon style.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white circle with a single thin black border. flat shade. simple graphic. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
small star shape, vivid metallic blue, varying length spikes on star. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.