User prompt
when i drop a block from a crane, new block is apearing immediately which is not good. you should add an animation where crane gets that new block delayed, maybe it can take it from somewhere ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
when i drop a block there should be an animation where crane brings another block from outside of the scene
User prompt
increase swinging range meaning wiggling block should be more at the bottom
User prompt
increase the range and increase length of the rope
User prompt
when faulty alignment is close to right it does rotate and fall to right but when it is vice versa it still rotates and falls to right.
User prompt
use base_block asset for base block also make it bigger.
User prompt
maybe it should spin or something change rotation and trajectory when the block falls due to wrong alignment before game over.
User prompt
maybe it should spin or something change rotation and trajectory.
User prompt
the block doesnt fall before it says game over. cmon dont be lazy
User prompt
if a block is aligned not very correctly with previous block. the block should fall and game over
Code edit (1 edits merged)
Please save this source code
User prompt
blocks should fall faster
User prompt
not just that button check if every button is falling. every block should not be falling when you count for 5
User prompt
it shouldnt remove block while they are falling and less than 5
User prompt
okay there is an issue. it removes block while they are in the air. in order to remove block they should be touching.
User prompt
block is removed but the blocks above that block hangs in air like there is no gravity. fix it please
User prompt
Please fix the bug: 'Timeout.tick error: baseBlock is null' in or related to this line: 'baseBlock.y += 5;' Line Number: 162
User prompt
base block doesnt go down it doesnt count that as blocks
User prompt
Please fix the bug: 'TypeError: LK.playSound is not a function' in or related to this line: 'LK.playSound('gameover'); // Play game over sound' Line Number: 123
User prompt
Please fix the bug: 'TypeError: LK.playSound is not a function' in or related to this line: 'LK.playSound('place'); // Play the place sound' Line Number: 97
Code edit (1 edits merged)
Please save this source code
User prompt
when block at the bottom removed the blocks stacked on that block doesnt go down.
User prompt
it shouldnt remove and say it exceedes 5 before they make contact. because currently it removes while they are in air. also it doesnt slide down.
User prompt
you should include base block with that condition too. also when you destroy block. before destroying slide it to the bottom where it is invisible then destroy it.
User prompt
when stacked blocks exceedes 5 block remove a block at the bottom
===================================================================
--- original.js
+++ change.js
@@ -131,15 +131,20 @@
currentBlock.update();
}
checkCollisions();
// Check if the number of blocks exceeds 5 and remove the bottom block
- if (blocks.length > 5 && !blocks[0].falling) {
- var bottomBlock = blocks.shift();
- game.removeChild(bottomBlock);
- // Apply gravity to the remaining blocks
- for (var i = 0; i < blocks.length; i++) {
- if (!blocks[i].falling) {
- blocks[i].falling = true;
+ if (blocks.length > 5) {
+ var fallingBlocks = blocks.filter(function (block) {
+ return block.falling;
+ });
+ if (fallingBlocks.length === 0) {
+ var bottomBlock = blocks.shift();
+ game.removeChild(bottomBlock);
+ // Apply gravity to the remaining blocks
+ for (var i = 0; i < blocks.length; i++) {
+ if (!blocks[i].falling) {
+ blocks[i].falling = true;
+ }
}
}
}
};