Code edit (4 edits merged)
Please save this source code
User prompt
when incrementing the crackLevel in the BlockBlank class, destroy the old crackAsset if it exists, and attach a new crack asset with the number of crackLevel
Code edit (5 edits merged)
Please save this source code
User prompt
add a click animation to clicking blocks that smoothly decreases the block size by 10% then grows it back to the original all over BLOCK_ROTATE_SPEED time
User prompt
and when updating the score
User prompt
Remove the "Score: " prefix to the score text
User prompt
add a score variable, and increment it when creating a ScoreText instance, which updates the text in the scoreText element
User prompt
add a score text2 to the top center of the screen
Code edit (2 edits merged)
Please save this source code
User prompt
after creating the lava, create a black glow with anchor 0.5,0 at the top-center of the screen with a full screen width, 200 height, and rangeX of 200
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: self.parent is undefined' in or related to this line: 'var scoreText = game.addChild(new ScoreText({' Line Number: 359
Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
instead of the bottom add it to the top
User prompt
instead of adding the scoreText to the game, add it to the bottom ui
Code edit (1 edits merged)
Please save this source code
User prompt
text2 doesn't use scalex and y. Instead use size of 100
User prompt
triple the size of the text and swap the border and text colours
Code edit (7 edits merged)
Please save this source code
User prompt
the fadeout should be delayed by 500ms
User prompt
use text2 instead
User prompt
Please fix the bug: 'text.setText is not a function' in or related to this line: 'text.setText("+1");' Line Number: 126
User prompt
in the block class's onlit function, create a scoretext object at the block's location, but attached to the game object
User prompt
create a new scoretext class which extends the configcontainer class. The class should Display the text "+1" in white, with a 5 wide black border and slowly move upward. After 0.5s the text should fade out and the instance should destroy itself
===================================================================
--- original.js
+++ change.js
@@ -533,11 +533,9 @@
}
crackLevel++;
crackAsset = self.blockContainer.attachAsset('crack' + crackLevel, {
anchorX: 0.5,
- anchorY: 0.5,
- width: BLOCK_SIZE,
- height: BLOCK_SIZE
+ anchorY: 0.5
});
};
return self;
});
background
Music
light
Sound effect
rotate
Sound effect
error
Sound effect
crack
Sound effect
break
Sound effect
flow
Sound effect
bubble1
Sound effect
bubble2
Sound effect
bubble3
Sound effect
bubble4
Sound effect
bubble5
Sound effect
gong
Sound effect