Code edit (3 edits merged)
Please save this source code
User prompt
create a new, fullwidth, 10 height shapebox at the lightlevel
User prompt
create a fullwidth, 10 height shapebox at the lightlevel
Code edit (11 edits merged)
Please save this source code
User prompt
add a shapeBox after the lightManager. The shape should be full width, have a height of LIGHT_LEVEL and tinted black
Code edit (1 edits merged)
Please save this source code
User prompt
attach a iconLight asset at the top of the screen, with an orange tint
Code edit (1 edits merged)
Please save this source code
User prompt
add a variance of LIGHT_GROW_VARIANCE to the LIGHT_GROW_SPEED
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
===================================================================
--- original.js
+++ change.js
@@ -676,16 +676,8 @@
});
scoreText.anchor.set(0.5, 0);
LK.gui.top.addChild(scoreText);
var lightManager = game.addChild(new Container());
-var iconLight = LK.getAsset('iconLight', {
- anchorX: 0.5,
- anchorY: 0,
- tint: 0xFFA500
-});
-iconLight.x = game.width / 2;
-iconLight.y = 0;
-game.addChild(iconLight);
var blockManager = game.addChild(new BlockManager());
var leftBorder = game.addChild(new Border({
x: 30
}));
@@ -707,8 +699,15 @@
rangeY: 200,
tint: 0x000000,
alpha: 2.0
}));
+var iconLight = game.addChild(LK.getAsset('iconLight', {
+ x: game.width / 2,
+ y: 0,
+ anchorX: 0.5,
+ anchorY: 0,
+ tint: 0xFFA500
+}));
function shuffle(array) {
var currentIndex = array.length;
while (currentIndex != 0) {
var randomIndex = Math.floor(Math.random() * currentIndex);
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