Code edit (5 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: soundFireCrackling is undefined' in or related to this line: 'soundFireCrackling.volume = volume;' Line Number: 438
User prompt
Please fix the bug: 'ReferenceError: volume is not defined' in or related to this line: 'soundFireCrackling.volume = volume;' Line Number: 438
Code edit (1 edits merged)
Please save this source code
User prompt
Add a slightly transparent black tinted shapeBox to the firewall. It should have a width of 2 * GAME_WIDTH, a height of 2 * GAME_HEIGHT and an anchor of 1,1
Code edit (2 edits merged)
Please save this source code
User prompt
In the game.update function add an empty if statement, checking if the tick counter is at 10s
Code edit (2 edits merged)
Please save this source code
User prompt
In the game.update method, play the backgroundAmbient sound every 10s
Code edit (1 edits merged)
Please save this source code
User prompt
backgroundAmbient should loop
User prompt
loop the backgroundAmbient sound on game start
Code edit (3 edits merged)
Please save this source code
User prompt
When calling game over also play the frogDeath sound effect
User prompt
When calling game over, also flash the screen red
Code edit (9 edits merged)
Please save this source code
User prompt
add a game.update function that checks if the frogs y position is greater than 0 or it's x position is less than the firewall's x position and call game over
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (17 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: childInstance is undefined' in or related to this line: 'childInstance.x += x;' Line Number: 234
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: self is undefined' in or related to this line: 'self.shift = function (x, y) {' Line Number: 348
===================================================================
--- original.js
+++ change.js
@@ -314,10 +314,9 @@
//==============================================================================
// Game Instances & Variables
//==============================================================================
;
-var soundBackgroundAmbient,
- soundFireCrackling = LK.getSound('fireCrackling');
+var soundBackgroundAmbient, soundFireCrackling;
var paused = true;
var gameOver = false;
var background = game.addChild(LK.getAsset('background', {
anchorX: 0.5,
fireCrackle
Sound effect
frogTongue
Sound effect
frogDeath
Sound effect
lilypadBounce
Sound effect
noTarget
Sound effect
backgroundAmbient
Sound effect
fireCrackling1
Sound effect
fireCrackling2
Sound effect
fireCrackling3
Sound effect
fireCrackling4
Sound effect
frogBounce
Sound effect
pickupCaught
Sound effect