Code edit (9 edits merged)
Please save this source code
User prompt
Add music
User prompt
Please fix the bug: 'Uncaught TypeError: LK.playMusic is not a function' in or related to this line: 'LK.playMusic('backgroundMusic');' Line Number: 111
User prompt
Please fix the bug: 'TypeError: LK.getMusic is not a function' in or related to this line: 'LK.getMusic('backgroundMusic').play();' Line Number: 111
User prompt
What can we add now
===================================================================
--- original.js
+++ change.js
@@ -97,9 +97,11 @@
/****
* Game Code
****/
-LK.playMusic('backgroundMusic');
+LK.playMusic('backgroundMusic', {
+ loop: true
+});
var canDoubleJump = true;
var framesPerShadow = 4;
var showShadow = true;
game.score = 0;