User prompt
Please fix the bug: 'Timeout.tick error: game.clear is not a function' in or related to this line: 'game.clear(); // Clear all objects from the game' Line Number: 141
User prompt
Please fix the bug: 'TypeError: balloons[i].update is not a function' in or related to this line: 'balloons[i].update();' Line Number: 100
User prompt
Please fix the bug: 'Balloon.extend is not a function' in or related to this line: 'var Balloon2 = Balloon.extend(function () {' Line Number: 60
Code edit (4 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: LK.clear is not a function' in or related to this line: 'LK.clear(); // Clear all objects from the game' Line Number: 113
User prompt
Please fix the bug: 'Timeout.tick error: game.clear is not a function' in or related to this line: 'game.clear(); // Clear all objects from the game' Line Number: 113
User prompt
Please fix the bug: 'setInterval is not a function' in or related to this line: 'setTimeout(function () {' Line Number: 121
User prompt
Please fix the bug: 'setInterval is not a function' in or related to this line: 'setInterval(function () {' Line Number: 103
Code edit (1 edits merged)
Please save this source code
Initial prompt
Balloon Hunter
===================================================================
--- original.js
+++ change.js
@@ -103,9 +103,9 @@
/****
* Game Over Screen
****/
game.end = function () {
- game.clear(); // Clear all objects from the game
+ LK.clear(); // Clear all objects from the game
var gameOverTxt = new Text2('Game Over! Score: ' + LK.getScore(), {
size: 150,
fill: 0xFFFFFF
});