User prompt
There should be a continous flow of the meteorite
User prompt
There should be non-stop flow of the meteorite
User prompt
remove the background
User prompt
If the spaceship is in the same position for more than 5 seconds then make 2 meteorite will fall from the y-axis of the spaceships position
User prompt
spaceship can fire unlimited bullets but when the spaceship fires 4 bullets continuously then the spaceship limits bullet fire rate to 1 for next 3 second.
User prompt
continuously 4 bullet can never be fired
User prompt
reduce the fire by 1 second 1 fire
User prompt
Please fix the bug: 'ReferenceError: powerUps is not defined' in or related to this line: 'powerUps.push(powerUp);' Line Number: 166
User prompt
based on the suggestions that you have provided implement till suggestion 4
User prompt
Now when the meteorite hits the bottom game over instantly
User prompt
make the texts look much more visually appealing and accordingly change the color of the background.
User prompt
change all the necessary font colors
User prompt
add a border on the edge of the screen
User prompt
add a border to the game screen
User prompt
the fall pattern should be completely random and unpredictable
User prompt
every second one meteor will randomly fall from any edge of the screen
User prompt
increase the speed of the fall of meteorites by 25% of current speed
User prompt
Consecutively maximum 2 meteorite can fall back to back from same position
User prompt
When the meteorite touches the spaceship then reduce the lives count by -1 and when the lives factor hit's 0 then game is over
User prompt
reduce the speed of the fall of meteorites by half the current speed
User prompt
Reduce the fall of the meteorites
User prompt
the bullets fired will only be affective on the meteorites if they are destroyed while they are on the game screen.
User prompt
The score increases when the bullets destroy a meteorite, and for every meteorite destroyed the score is increased by 1.
User prompt
Add a background in the game screen
User prompt
meteorites are not falling
===================================================================
--- original.js
+++ change.js
@@ -67,16 +67,8 @@
anchorY: 0.5
}));
background.x = 2048 / 2;
background.y = 2732 / 2;
-var border = game.addChild(LK.getAsset('border', {
- anchorX: 0.5,
- anchorY: 0.5
-}));
-border.x = 2048 / 2;
-border.y = 2732 / 2;
-border.width = 2058;
-border.height = 2742;
var spaceship = game.addChild(new Spaceship());
spaceship.x = 2048 / 2;
spaceship.y = 2732 - 200 - spaceship.height;
var bullets = [];
@@ -86,15 +78,15 @@
var lastMeteoriteX = 0;
var samePositionCounter = 0;
var scoreTxt = new Text2('0', {
size: 50,
- fill: "#ffffff"
+ fill: "#0000ff"
});
scoreTxt.anchor.set(0.5, 0);
LK.gui.top.addChild(scoreTxt);
var livesTxt = new Text2('Lives: 3', {
size: 50,
- fill: "#ffffff"
+ fill: "#00ff00"
});
livesTxt.anchor.set(1, 0);
LK.gui.topRight.addChild(livesTxt);
livesTxt.x = -20;
spaceship facing upwards. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
laser being fired upwards. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
meteorite. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Iron Meteorite which is slightly shining. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.