Code edit (8 edits merged)
Please save this source code
User prompt
in up, in the last line of the dragTarget method call sortCellsByFilled on board
User prompt
add a new method to Board that sorts .children if they are instances of Cell. Such that cells with the value filled=true renders above cells with filled=false
User prompt
add a method to Board that sorts .children if they are instances of Cell. Such that cells with the value filled=true renders above cells with filled=false
User prompt
set background color to 80acc2
User prompt
When changing and using scores use the LK score methods
User prompt
move up board y by 30 px
User prompt
update brick y offsets to [2, -10, 2, 2, 2, -20]
Code edit (3 edits merged)
Please save this source code
User prompt
Instead of having the same array twice, create a top level variable of the brick y offset in cell
Code edit (1 edits merged)
Please save this source code
User prompt
set alpha on tileBackground to .5
User prompt
set tileBackground y to the height of the screen
User prompt
after gameBackground in game code, insert a new element wait the id tileBackground at. Make this be aligned at the bottom center of the screen
User prompt
set alpha on the background element to .5
Remix started
Copy Blockmas
===================================================================
--- original.js
+++ change.js
@@ -367,10 +367,10 @@
game.createBlocks();
}
var pointsToAdd = board.checkLines();
if (pointsToAdd) {
- score += Math.pow(pointsToAdd, 2) * 10;
- scoreTxt.setText(score);
+ LK.setScore(LK.getScore() + Math.pow(pointsToAdd, 2) * 10);
+ scoreTxt.setText(LK.getScore());
}
}
board.removeTint();
dragTarget = undefined;
@@ -380,9 +380,9 @@
for (var i = 0; i < 3; i++) {
game.createBlock(i);
}
};
-var score = 0;
+// Score is now handled by LK score methods
game.createBlocks();
var scoreTxt = new Text2('0', {
size: 150,
fill: "#ffffff",
White square with tight round corners, flat shaded, hyper casual game. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
White particle cloud. Cartoon. Bright outline. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Perfectly square yellow Christmas decoration. Cartoon style. Cute art style. Simple vector style.
Perfectly square bright purple Christmas decoration with cute happyy face. Cartoon style. Cute art style. Simple vector style.
Perfectly square bright green game piece with cute happy face. Cartoon style. Cute art style. Simple vector style. No Shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
No background
Perfectly square red game piece with cute happy face. Cartoon style. Cute art style. Simple vector style. No Shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Perfectly square bright dark blue game piece with cute happy face. Cartoon style. Cute art style. Simple vector style. No Shadows. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows..