User prompt
if exit button pressed then restart game
Code edit (1 edits merged)
Please save this source code
User prompt
add a new class called exit for a button that will be in bottom left corner on white Strip
User prompt
Fix Bug: 'Uncaught ReferenceError: Button is not defined' in this line: 'var checkLinesButton = new Button(function () {' Line Number: 312
User prompt
add a new button class for button that will be inbottom left corner on whiteStrip
User prompt
Add button in bottom left on top of whitestrip that activates gameover
User prompt
add a restart button to bottom left that lets restarts the game when pressed. place in its own class and add to game
User prompt
add a restart button to bottom left that lets restarts the game when pressed
Code edit (2 edits merged)
Please save this source code
User prompt
If scoretext is greater than 100 then add 3 to blockcounter
User prompt
Fix Bug: 'TypeError: change.cell.setTint is not a function' in this line: 'change.cell.setTint(change.cell.currentTint);' Line Number: 257
User prompt
Fix Bug: 'TypeError: cells[a].setTint is not a function' in this line: 'cells[a].setTint(dragTarget.color);' Line Number: 352
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'length')' in this line: 'for (var i = self.particles.length - 1; i >= 0; i--) {' Line Number: 265
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'length')' in this line: 'for (var i = self.particles.length - 1; i >= 0; i--) {' Line Number: 265
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'updateCount')' in this line: 'self.blockCounterDisplay.updateCount(12 - blockCounter);' Line Number: 391
User prompt
count number of blocks placed and display
User prompt
add text to display how many block remain
User prompt
display blockcounter count on screen and update it each time a block is placed
User prompt
display blockcounter count on screen and update it each time a block is placed
User prompt
show blockcounter counter and update it each time a block is placed
===================================================================
--- original.js
+++ change.js
@@ -348,9 +348,8 @@
var cells = dragTarget.getOverlappingCells();
if (cells) {
for (var a = 0; a < cells.length; a++) {
cells[a].setFill(true, dragTarget.blocks[a], dragTarget.offset);
- cells[a].setTint(dragTarget.color);
}
blocks[blocks.indexOf(dragTarget)] = undefined;
dragTarget.destroy();
blockCounter--;
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.