Code edit (2 edits merged)
Please save this source code
Code edit (4 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: LK.getSOund is not a function' in or related to this line: 'LK.getSOund('planet1').play();' Line Number: 348
Code edit (2 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: LK.flashObject is not a function' in or related to this line: 'LK.flashObject(0xffffff);' Line Number: 92
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'LK.playSound is not a function' in or related to this line: 'LK.playSound('hyper1');' Line Number: 343
Code edit (11 edits merged)
Please save this source code
User prompt
play bgsound at start, and loop it when it finishes
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -76,9 +76,9 @@
self.vx = vx;
self.vy = vy;
self.scale.x = scale;
self.scale.y = scale;
- LK.effects.flashObject(self, 0xffffff, 50);
+ //LK.effects.flashObject(self, 0xffffff, 50);
};
self._move_migrated = function () {
self.x += self.vx;
self.y += self.vy;
@@ -331,8 +331,9 @@
loop: true
});
LK.getSound('hyper1').play();
function createRadialExplosion(x, y) {
+ LK.getSound('planet1').play();
var numParticles = 20;
//var particles = [];
for (var i = 0; i < numParticles; i++) {
//var angle = Math.random() * Math.PI * 2;
A white triangle pointing down.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A colorful rectangular button with the text "Play Again" with each letter in a different color picked from a nice palette.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.