Code edit (2 edits merged)
Please save this source code
User prompt
Please fix the bug: 'seetings is not defined' in or related to this line: 'settings.xs = (seetings.xs || 0) + 1;' Line Number: 823
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: blockClass is not a constructor' in or related to this line: 'var newBlock = self.parent.addChild(new blockClass({' Line Number: 637
Code edit (1 edits merged)
Please save this source code
User prompt
in the randomizeBlockClass function, the classes array should be an array of objects, with blockClass:
Code edit (6 edits merged)
Please save this source code
User prompt
remove the unused score variable
User prompt
use LK.getscore and LK.setscore instead of using the score variable
User prompt
Create a lightSources = 0 global variable. Whenever a block becomes lit, increment the value. In the block's onDestroy function, decrement lightSources if the block is lit and call game over with the message "Your light is extinguished" if lightSources is zero
Code edit (1 edits merged)
Please save this source code
User prompt
At the same position as the borderGear asset, create a borderLevel asset with a 45 degree rotation
Code edit (3 edits merged)
Please save this source code
User prompt
the borderGear should begin with a random rotation
Code edit (1 edits merged)
Please save this source code
User prompt
move all borderGear class functionality into the border class and delete the borderGear class
User prompt
Integrate the BorderGear class into the border class
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
===================================================================
--- original.js
+++ change.js
@@ -631,8 +631,9 @@
var BLOCK_MARGIN = 20;
var BLOCK_HALFSIZE = BLOCK_SIZE * 0.5;
var BLOCK_CRACK_CHANCE = 0.3;
var BLOCK_ROTATE_SPEED = 100;
+var LIGHT_LEVEL = 500;
var LIGHT_GROW_SPEED = 5000;
var LIGHT_SPILL_SIZE = 35;
var LIGHT_OFFSET = 5;
var ROW_SPAN = 7;
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