Code edit (10 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught ReferenceError: boardBackground is not defined' in this line: 'bottomStrip.width = boardBackground.width;' Line Number: 298
User prompt
add a white background strip at bottom of screen that is same width as grid and behind blocks
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
when block placed on cell set block background alpha to cell alpha
User prompt
when block placed on cell set block alpha to cell alpha
Code edit (5 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'alpha')' in this line: 'cells[a].setFill(true, dragTarget.blocks[a], dragTarget.offset, self.boardBackground.alpha);' Line Number: 335
User prompt
Fix Bug: 'ReferenceError: boardBackground is not defined' in this line: 'cells[a].setFill(true, dragTarget.blocks[a], dragTarget.offset, boardBackground.alpha);' Line Number: 333
User prompt
when block is attached to grid match block background alpha to grid background alpha
Code edit (7 edits merged)
Please save this source code
User prompt
add alpha to board background
User prompt
add a background to board
Code edit (3 edits merged)
Please save this source code
User prompt
add alpha to cell graphic
Code edit (1 edits merged)
Please save this source code
Code edit (7 edits merged)
Please save this source code
User prompt
move board down 150
Code edit (1 edits merged)
Please save this source code
Initial prompt
Copy Blockmas
===================================================================
--- original.js
+++ change.js
@@ -292,10 +292,12 @@
});
var Game = Container.expand(function () {
var self = Container.call(this);
var gameBackground = self.createAsset('gameBackground', 'Background Graphics', .5, .5);
+ var boardBackground = self.createAsset('boardBackground', 'Board Background Graphics', .5, .5);
gameBackground.x = 2048 / 2;
gameBackground.y = 2732 / 2 + 65;
+ boardBackground.alpha = 0.6;
var blocks = [];
var dragTarget;
var board = self.addChild(new Board());
board.x = 2048 / 2;
@@ -329,9 +331,9 @@
if (dragTarget) {
var cells = dragTarget.getOverlappingCells();
if (cells) {
for (var a = 0; a < cells.length; a++) {
- cells[a].setFill(true, dragTarget.blocks[a], dragTarget.offset, boardBackground.alpha);
+ cells[a].setFill(true, dragTarget.blocks[a], dragTarget.offset, self.boardBackground.alpha);
cells[a].setTint(dragTarget.color);
}
blocks[blocks.indexOf(dragTarget)] = undefined;
dragTarget.destroy();
remove painted bits
a yellow furry cuddly ball of fur. little feet. No ears. cute happy face. Cartoon style. Cute art style. Simple vector style. Pastel colors, flat shaded, vector art. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
remove painted bits
a purple furry cuddly ball of fur. little feet. No ears. cute happy face. Cartoon style. Cute art style. Simple vector style. Pastel colors, flat shaded, vector art. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
a colbalt blue furry cuddly ball of fur. little feet. No ears. cute happy face. Cartoon style. Cute art style. Simple vector style. Pastel colors, flat shaded, vector art. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Light gray square with round corners, With play symbol in middle. flat shaded, hyper casual game. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
high definition, with lots of soft colorful fluffy fur balls. happy cartoon faces. exploding from middle of screen. No words
Light gray square, With a re-start symbol in middle.black boderline around outerend of button. flat shaded, hyper-casual game. 2D. Blank background. High contrast. No shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.