Code edit (15 edits merged)
Please save this source code
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: bgMusic.reset is not a function' in or related to this line: 'bgMusic.reset();' Line Number: 578
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'LK.setSound is not a function' in or related to this line: 'LK.setSound('ambience').loop = true;' Line Number: 567
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'LK.getSound(...).setLoop is not a function' in or related to this line: 'LK.getSound('ambience').setLoop(true); // = 9999;' Line Number: 566
===================================================================
--- original.js
+++ change.js
@@ -532,24 +532,19 @@
game.on('down', function (x, y, obj) {
obj.event = obj;
handleMove(obj);
});
-console.log(LK.getSound('ambience'));
-console.log(LK);
+//console.log(LK.getSound('ambience'));
+//console.log(LK);
//LK.getSound('ambience').loop = true;
//LK.getSound('ambience').play();
var bgMusic = LK.getSound('ambience');
-bgMusic.stop();
+bgMusic.play();
+LK.setInterval(function () {
+ bgMusic.play();
+}, 9215);
// Game tick event
LK.on('tick', function () {
- if (LK.ticks % 10 == 0 && !LK.getSound('ambience').isPlaying) {
- //LK.getSound('ambience').stop();
- //LK.getSound('ambience').play();
- }
- if (!bgMusic.isPlaying) {
- bgMusic.position = 0;
- bgMusic.play();
- }
if (gameEnding) {
ball._update_migrated(platforms);
platforms.forEach(function (platform) {
if (platform._update_migrated) {
A happy blue elephant.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
erase.
Make the bird sit inside a birdcage.
Three green arrows pointing down.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A sad little bluebird sitting down.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A happy little bluebird flying.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A happy little green bird flying.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A lush jungle scenery with huge old trees covered in vines and overwrowth, blue sky and forested mountains in the background.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A dark wooden message board with vines and jungle moss growing on top.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A happy little blue elephant, looking scared, facing the viewer, legs flailing as it falls through the air.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A delicious peanut.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
delete