User prompt
play the gong sound when game over
User prompt
when creating a lavaparticle, add a 25% chance to randomly play one of the bubble asset sounds
User prompt
in the Lava class, play the 'flow' sound every 5s to 10s, starting immediately
Code edit (3 edits merged)
Please save this source code
User prompt
play the light sound when onLit is called, after the paths have been checked
User prompt
instead of using self.errorSoundPlaying, use a global variable
User prompt
it appears that the on end function doesn't work, instead prevent it from being played (globally) less than 500ms apart
User prompt
when the lockSymbol is created, play the error sound, and prevent it from playing again until it's finished
User prompt
play the click sound when the down function is called in the block class
User prompt
in the Block class's rotate function, after assigning self.isRotating = true, play the rotate sound
User prompt
when the game starts, play the background music on repeat
Code edit (3 edits merged)
Please save this source code
User prompt
remove the tint from the lockSymbol
Code edit (3 edits merged)
Please save this source code
User prompt
in the blockbreakparticle, create an additional identical asset, with the exception of a scaleX and Y of 1.1 and a black tint
Code edit (1 edits merged)
Please save this source code
User prompt
Remove the width and height of 10 for the blockbreakparticles
User prompt
Create a new BlockBreakParticle class which duplicates all the logic in the BlockSparkParticle, however instead of a shapeBox assets, randomize between the blockX1-4 assets
Code edit (1 edits merged)
Please save this source code
User prompt
Replace the: "game.addChild(LK.getAsset('shapeBox', { width: game.width, height: LIGHT_LEVEL, tint: 0x000000 }));" with a black tinted glow class instance with 5 layers, a 10 rangeX, and maintaining the 0,0 anchor
User prompt
re-revert the lockSymbol to a basic asset and tint it 0xFF4D00
Code edit (2 edits merged)
Please save this source code
User prompt
when completing the fadeout of the locksymbol, destroy it and reset the lockSymbol variable
Code edit (1 edits merged)
Please save this source code
User prompt
go back to using a bordersymbol for the lockSymbol
===================================================================
--- original.js
+++ change.js
@@ -774,8 +774,9 @@
self.onDestroy = function () {
if (self.lit) {
lightSources -= 1;
if (lightSources === 0) {
+ LK.getSound('gong').play(); // Play the gong sound
LK.showGameOver("Your light is extinguished");
}
}
if (self.lightContainer) {