User prompt
Half the wave counter size
User prompt
Move the Wave: text next to the pause button.
User prompt
Move the Wave: text closer to the pause button.
User prompt
Move the Wave: text next to the pause button.
User prompt
Move the Wave: text to the topright corner of the map
User prompt
Place the Wave: text to the left bottom corner of the map
User prompt
Remove block from the game
User prompt
Remove boss enemy from the game
User prompt
Ensure hero is not shoot from the center of the asset but from the left and right edge of the asset
User prompt
Migrate to the latest version of LK
Remix started
Copy Air Force War (UPDATE 3.5)
===================================================================
--- original.js
+++ change.js
@@ -148,13 +148,20 @@
};
// Hero update logic
};
self.shoot = function () {
- var bullet = new HeroBullet();
- bullet.x = this.x;
- bullet.y = this.y - 50; // Adjust bullet start position
- heroBullets.push(bullet);
- game.addChild(bullet);
+ // Shoot bullet from the left edge
+ var leftBullet = new HeroBullet();
+ leftBullet.x = this.x - heroGraphics.width / 2;
+ leftBullet.y = this.y - 50;
+ heroBullets.push(leftBullet);
+ game.addChild(leftBullet);
+ // Shoot bullet from the right edge
+ var rightBullet = new HeroBullet();
+ rightBullet.x = this.x + heroGraphics.width / 2;
+ rightBullet.y = this.y - 50;
+ heroBullets.push(rightBullet);
+ game.addChild(rightBullet);
};
});
// Define the HeroBullet class
var HeroBullet = Container.expand(function () {