Code edit (1 edits merged)
Please save this source code
User prompt
remove spawn duplication
Code edit (2 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: otherCube is not defined' in this line: 'if (otherCube) {' Line Number: 6
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: otherCube is not defined' in this line: 'if (otherCube) {' Line Number: 6
User prompt
add start button that when pressed will spawn first cube
User prompt
Fix Bug: 'Uncaught ReferenceError: otherCube is not defined' in this line: 'if (otherCube) {' Line Number: 6
User prompt
add code to spawn first cube when game starts
User prompt
add code to spawn a new cube when a cube hits the bottom without intersecting another cube
User prompt
add code for when cube hits bottom without intersecting another cube
User prompt
change cube spawn so cube spawns when cube interacts with another cube
User prompt
if cube has side interaction do not stack cube
Code edit (4 edits merged)
Please save this source code
User prompt
add an alpha layer to background image
User prompt
make cubeGraphics tint colour random
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'length')' in this line: 'for (var i = 0; i < self.cubes.length; i++) {' Line Number: 12
User prompt
Fix Bug: 'ReferenceError: cubes is not defined' in this line: 'for (var i = 0; i < cubes.length; i++) {' Line Number: 12
User prompt
added colour selection update to colourselected control
Code edit (1 edits merged)
Please save this source code
User prompt
change cubeGraphics Tint when colorBox selection changes and update display
User prompt
add a grid with 8 selectable tini colors that allow the cubeGraphics tint to be changes when clicked
Code edit (5 edits merged)
Please save this source code
User prompt
add a tint color to cubeGraphics
User prompt
add a full screen background image
===================================================================
--- original.js
+++ change.js
@@ -83,9 +83,9 @@
}
}
var gameStarted = true;
var colorGrid = new ColorGrid();
- colorGrid.y = 2732 - colorGrid.height;
+ colorGrid.y = 100 - colorGrid.height;
self.addChild(colorGrid);
colorGrid.on('colorSelected', function (color) {
Cube.prototype.defaultColor = color;
});
arrow pointing left, transparent background, cartoon style, no shadow Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white square, 2d in-game asset, blank background, high contrast, no shadows, single game texture Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
vertical slider. 1000 pixels tall and 50 pixels wide. with numbers 1 at top and 10 at bottom. 2d in-game asset. blank background no shadows. high contrast Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white square, 2d in-game asset, blank background, high contrast, no shadows, single game texture Single Game Texture. With word DROP in middle Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
background image 2732 high x 2048 wide. high contrast, light cartoon image of colored stacked cubes. out in open fields. Single Game Texture. In-Game asset. 3d. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
stone square, bevelled edges. 2d in-game asset, blank background, high contrast, no shadows, single-game texture. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Triangle pointing left, transparent background, cartoon style, no shadow Single Game Texture. In-Game asset. 2d. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.