Code edit (1 edits merged)
Please save this source code
User prompt
swap the assets for lava11 and lava12
User prompt
all lava assets should be 128x1024
User prompt
create assets lava6 to lava16
Code edit (4 edits merged)
Please save this source code
User prompt
the light class should tween it's lightShape alpha and scale from 0 to 1 over LIGHT_GROW_SPEED
User prompt
Create a new Light class that inherits from the ConfigContainer. It should contain a single shapeEllipse with width and height of BLOCK_SIZE, anchor of 0.5,1 and a scale and alpha of 0
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'config is undefined' in or related to this line: 'self.orientation = config.orientation !== undefined ? config.orientation : Math.floor(4 * Math.random());' Line Number: 60
Code edit (4 edits merged)
Please save this source code
User prompt
add an optional boolean to the self.rotate function called instant, if instant is truthy then instead of tweening the rotation, apply the change immediately
User prompt
when self.rotate is called in the Block class, destroy all children in the lightContainer
User prompt
rename the self.up, right, down and left booleans to be self.upPath, etc for all Block and child classes. Do not change the name of the self.down function
Code edit (1 edits merged)
Please save this source code
User prompt
add an empty onSettle function to the Block class, which is called with the onFinish tween callback
Code edit (1 edits merged)
Please save this source code
User prompt
add up, right, down, left booleans (default to false) to the Block class
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: tween is not defined' in or related to this line: 'var rotationTween = tween(self.blockContainer, {' Line Number: 66 βͺπ‘ Consider importing and using the following plugins: @upit/tween.v1
User prompt
create a new, empty BlockRow class that inherits from the ConfigContainer class
Code edit (3 edits merged)
Please save this source code
User prompt
before attaching the light and block containers in the Block class, add a shapeBox that has BLOCK_SIZE width and height and an opacity of 0
Code edit (1 edits merged)
Please save this source code
User prompt
in the blockBlank add an empty self.down function
User prompt
in the blockBlank class override the self.down function to be empty
===================================================================
--- original.js
+++ change.js
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