User prompt
how about 0.2
User prompt
make it 0.3
User prompt
add a 0.1 second cooldown on shooting
User prompt
can you make the red enemies face where they're going
User prompt
move it a bit to the left
User prompt
move the score counter to the other corner
User prompt
make enemies spawn 2x faster
User prompt
you broke the player projectiles
User prompt
make the player projectiles work
User prompt
the lasers broke the player projectiles
User prompt
make the lasers stay for a bit
User prompt
make lasers as tall as the screen spawn sometimes
User prompt
even faster
User prompt
make the enemies spawn faster
User prompt
make the green enemies almost as fast as the green ones
User prompt
do that again but backwards
User prompt
make the red enemies worth 3 points and the green enemies worth 1 point
User prompt
make even less rare
User prompt
make the red enemies less rare
User prompt
make the green enemies worth 1 point
===================================================================
--- original.js
+++ change.js
@@ -78,14 +78,21 @@
});
LK.gui.top.addChild(scoreTxt);
scoreTxt.x -= 100;
var score = 0;
+var canShoot = true;
game.on('down', function () {
- var laser = new Laser();
- laser.x = player.x;
- laser.y = player.y - 30; // Start slightly above the player
- lasers.push(laser);
- game.addChild(laser);
+ if (canShoot) {
+ var laser = new Laser();
+ laser.x = player.x;
+ laser.y = player.y - 30; // Start slightly above the player
+ lasers.push(laser);
+ game.addChild(laser);
+ canShoot = false;
+ LK.setTimeout(function () {
+ canShoot = true;
+ }, 100);
+ }
});
var player = game.addChild(new Player());
player.x = 1024; // Center horizontally
player.y = 2500; // Position towards the bottom
green cartoon laser. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
red cartoon laser. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pink cartoon laser. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
sci-fi cartoon spaceship. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.