User prompt
make sure rope is created before player
User prompt
Synchronize the payers and rope position on first game
User prompt
on game start make sure the rope is adjusted properly
User prompt
make screen flash electric blue
User prompt
when enemy is zapped, show shock over enemy for half a second
User prompt
do a fade out of small circle before setting its alpha to 0
User prompt
remove small circle when powerup is over circle
User prompt
when circle of powerup collides with player circle, destroy powerup circle
User prompt
remove small of power up when collides with circle. make it fade out before destroying it
User prompt
when powerup touches big circle, start fading out the circle of the powerup
User prompt
Make sure mosquito sound plays also when the first wave of mosquitos spawns
User prompt
make sure mosquito sound also plays on game start
User prompt
remove circle of power up when it entersthe big circle
User prompt
add a small circle behind the power up
Code edit (1 edits merged)
Please save this source code
User prompt
change alpha of powerup all the time
User prompt
change score font to a gamer one
User prompt
add a little more movement to the power up to make it more lively
User prompt
play mosquito sound every time a wave of enemies is spawned
User prompt
remove dim effect from powerup
User prompt
fire should not dim
User prompt
Please fix the bug: 'TypeError: Graphics is not a constructor' in or related to this line: 'var halo = new Graphics();' Line Number: 130
User prompt
powerup should not dim, it should have a bright halo around dit
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -110,17 +110,9 @@
var dx = self.x - player.x;
var dy = self.y - player.y;
var distance = Math.sqrt(dx * dx + dy * dy);
if (distance < self.width / 2 + player.width / 2 && !game.gameOverTriggered) {
- var fadeOutInterval = LK.setInterval(function () {
- smallCircle.alpha -= 0.1;
- if (smallCircle.alpha <= 0) {
- self.destroy();
- LK.clearInterval(fadeOutInterval);
- }
- }, 100);
- circle.scale.x *= 1.25;
- circle.scale.y *= 1.25;
+ self.destroy();
LK.getSound('powerup').play();
}
// Check if power up is outside of the circle
if (!isInsideCircle(self, circle)) {