Code edit (1 edits merged)
Please save this source code
User prompt
In the border class, before creating the border assets, create a borderGear at the LIGHT_LEVEL y position and radius of 20
Code edit (1 edits merged)
Please save this source code
User prompt
create a BorderGear class that inherits from the configContainer class and takes in a radius number. The class contains a borderGear asset with a width and height of 2 * config.radius and rotates at rowSpeed relative to its radius
User prompt
undo the last change; instead of checking if the self.parent exists, move the self.callDestroy to the bottom of the logic
User prompt
Please fix the bug: 'TypeError: self.parent is undefined' in or related to this line: 'var newBlock = self.parent.addChild(new newBlockClass({' Line Number: 607
User prompt
when creating the newBlock, replace the up,right,down,left block references to the new block
Code edit (9 edits merged)
Please save this source code
User prompt
when the blockblank destroys itself, create a new block in its place using the randomizeBlockClass function
Code edit (2 edits merged)
Please save this source code
User prompt
create 2 border instances before the lava instance. These should be placed on either side of the bottom of the screen
User prompt
create a Border class that inherits from the ConfigContainer class, comprised randomly of border1 and border2 assets making up the full game height
Code edit (1 edits merged)
Please save this source code
User prompt
if the crackLevel is 1, then give the crackAsset a random rotation
User prompt
in the blockBlank class, before returning self, there's a BLOCK_CRACK_CHANCE chance of calling self.rotate
Code edit (1 edits merged)
Please save this source code
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
===================================================================
--- original.js
+++ change.js
@@ -77,9 +77,9 @@
var self = ConfigContainer.call(this, config);
var text = self.addChild(new Text2("+1", {
fill: 0xFFFFFF,
stroke: 0x000000,
- strokeThickness: 30,
+ strokeThickness: 4,
size: 120
}));
text.anchor = {
x: 0.5,
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