User prompt
show blockcounter counter and update it each time a block is placed
Code edit (2 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'setText')' in this line: 'self.blockCounterText.setText('Blocks: ' + blockCounter.toString());' Line Number: 413
User prompt
Display blockcounter value on screen
User prompt
Fix Bug: 'Uncaught ReferenceError: boardBackground is not defined' in this line: 'bottomStrip.width = boardBackground.width;' Line Number: 313
User prompt
remove any unused variables
Code edit (2 edits merged)
Please save this source code
User prompt
add code to display in bottom left of screen number of blocks remaining
User prompt
add seedblock to game to display on screen
User prompt
add text in bottom left to indicate how many seed blocks left
Code edit (2 edits merged)
Please save this source code
User prompt
add text in bottom left to indicate how many seed blocks left
Code edit (1 edits merged)
Please save this source code
User prompt
remove isgameover code
User prompt
Fix Bug: 'TypeError: bottomStrip.setText is not a function' in this line: 'bottomStrip.setText('No More Seed Blocks');' Line Number: 392
Code edit (3 edits merged)
Please save this source code
User prompt
when block counter reaches 0 display message on white strip at bottom saying "No More Seed Blocks"
User prompt
when block counter reaches 0 do not display any more blocks
User prompt
change blockcounter code so that when it reaches 0 no more blocks are generated but game continues
Code edit (2 edits merged)
Please save this source code
User prompt
bring noMoreTribbleSeed message to from of whitestrip
Code edit (11 edits merged)
Please save this source code
User prompt
if block counter reachs zero display message on white strip saying "No more Tribble seeds"
User prompt
add counter to limit number of blocks a player can use. set to 12
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -348,9 +348,9 @@
checkLinesButton.x = bottomStrip.width - 50;
checkLinesButton.y = bottomStrip.y - checkLinesButton.height - 10;
self.addChild(checkLinesButton);
var blocks = [];
- var blockCounter = 13;
+ var blockCounter = 12;
var dragTarget;
var board = self.addChild(new Board());
board.x = 2048 / 2;
board.y = 2732 / 2 - 250 + 30 + 150;
@@ -387,8 +387,9 @@
}
blocks[blocks.indexOf(dragTarget)] = undefined;
dragTarget.destroy();
blockCounter--;
+ self.seedBlocksLeftTxt.setText(blockCounter + ' Seed Blocks Left');
if (blockCounter <= 0) {
var noMoreBlocksText = new Text2('No More Seed Blocks', {
size: 60,
fill: "#ffffff",
@@ -409,8 +410,19 @@
}
dragTarget = undefined;
}
});
+ self.seedBlocksLeftTxt = new Text2(blockCounter + ' Seed Blocks Left', {
+ size: 60,
+ fill: "#ffffff",
+ font: 'Impact',
+ stroke: '#2a636e',
+ strokeThickness: 8
+ });
+ self.seedBlocksLeftTxt.anchor.set(0, 1);
+ self.seedBlocksLeftTxt.x = 20;
+ self.seedBlocksLeftTxt.y = 2732 - 20;
+ LK.gui.bottomLeft.addChild(self.seedBlocksLeftTxt);
self.createBlocks = function () {
if (blockCounter >= 0) {
for (var i = 0; i < 3; i++) {
self.createBlock(i);
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.