User prompt
Ensure that not load more towerblock if the counter reach zero
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of null (reading 'swayDirection')' in or related to this line: 'var lastSwayDirection = currentBlock.swayDirection; // Save the sway direction of the current block' Line Number: 151
User prompt
And now why you stopping the loader movement at the side of the map? Fix it
User prompt
Avoid towerblock jumping and bouncing
User prompt
Speed up the towerblock loading horizontal movement by half
User prompt
Speed up the loading horizontal movement by half
User prompt
Please fix the bug: 'TypeError: LK.getMusic is not a function' in or related to this line: 'LK.getMusic('Birds').play();' Line Number: 237
User prompt
Play dove sound and birds sound at the same time in loop
User prompt
Please fix the bug: 'TypeError: LK.getMusic is not a function' in or related to this line: 'LK.getMusic('Birds').play();' Line Number: 241
User prompt
Play dove sound and birds sound alternately
User prompt
Play dove sound in loop
User prompt
Play dove sound loop in every 7 seconds
User prompt
Do it
User prompt
Randomize the birds movement, not only just one horizontal line
User prompt
Ensure all type of the the birds flying to the upper half of the map
User prompt
Ensure the birds flying to the upper half of the map
User prompt
Decrease the number of the bird asset to the half
User prompt
Ensure the dovebird movement from right to left direction
User prompt
Add dovebird asset to the map
User prompt
Add to the map a flying animated dove bird
User prompt
Do it
User prompt
Add Animated flying birds to the map
User prompt
Play birds sound in loop every 7 seconds
User prompt
Maintain the sway direction after dropping the block
User prompt
Avoid start from right when the loading movement is head to left
===================================================================
--- original.js
+++ change.js
@@ -143,9 +143,9 @@
game.addChild(currentBlock);
}
var lastSwayDirection = currentBlock.swayDirection; // Save the sway direction of the current block
dropBlock();
- if (counter > 0) {
+ if (counter > 0 && currentBlock) {
// Check if counter is greater than zero
createNewBlock();
currentBlock.x = towerBlocks[towerBlocks.length - 1].x; // Set the x position of the new block to the x position of the last block in the towerBlocks array
currentBlock.swayDirection = lastSwayDirection; // Set the sway direction of the new block to the saved sway direction