User prompt
once the score reaches 100 points the speed of the meteorites falling is doubled
User prompt
Increase the speed of meteorites falling by 5% for every 50 score.
User prompt
remove Level 1
User prompt
Introduce a new element battleship which fires bullet and whose position is fixed on the top edge of the screen and can automatically move left and right
User prompt
Please fix the bug: 'Uncaught ReferenceError: battleship is not defined' in or related to this line: 'battleship.shoot();' Line Number: 172
User prompt
Introduce a new element battleship which fires bullet and whose position is fixed on the top edge of the screen and can automatically move left and right
User prompt
Boss Fight Begin text should be shown after the score reach 50
User prompt
Once the score reaches 50 and all the meteorites stop falling and the meteorites from the game view are destroyed then show a text in the game view as "Get ready for the Boss fight"
User prompt
Once the score reaches 50, meteorites stop falling
User prompt
Once the score reaches 50 the meteorites will stop falling and show a text in the middle of the screen "Defeat the boss" for 2 seconds.
User prompt
Once the score reaches 50 the meteorites will stop falling
User prompt
emove all the bugs
User prompt
remove redundant class
User prompt
Introduce a text on top right corner naming Level 1
User prompt
remove the border
User prompt
increase the thickness of the border
User prompt
increase the thickness of the border
User prompt
add a thick border to the game
User prompt
Add a colorful space background in the game
User prompt
reduce all the font size to 60
User prompt
shift shield to little left as it is not visible
User prompt
reduce all the font size to 60
User prompt
for every 20 meteorites destroyed only one shield will spawn
User prompt
When 20 meteorites are destroyed then only single shield will fall, and this continues till the game ends
User prompt
maximum shield that can be collected is 3 and not beyond that
===================================================================
--- original.js
+++ change.js
@@ -19,9 +19,9 @@
var ironMeteoriteGraphics = self.attachAsset('iron_meteorite', {
anchorX: 0.5,
anchorY: 0.5
});
- self.speed = 1.5 + Math.floor(score / 50) * 0.075;
+ self.speed = score >= 100 ? 3 : 1.5 + Math.floor(score / 50) * 0.075;
self.health = 2; // Add health property
self.update = function () {
self.y += self.speed;
};
@@ -32,9 +32,9 @@
var meteoriteGraphics = self.attachAsset('meteorite', {
anchorX: 0.5,
anchorY: 0.5
});
- self.speed = 1.5 + Math.floor(score / 50) * 0.075;
+ self.speed = score >= 100 ? 3 : 1.5 + Math.floor(score / 50) * 0.075;
self.health = 1; // Add health property
self.update = function () {
self.y += self.speed;
};
@@ -66,9 +66,9 @@
var stonyIronMeteoriteGraphics = self.attachAsset('stony_iron_meteorite', {
anchorX: 0.5,
anchorY: 0.5
});
- self.speed = 1.5 + Math.floor(score / 50) * 0.075;
+ self.speed = score >= 100 ? 3 : 1.5 + Math.floor(score / 50) * 0.075;
self.health = 3; // Add health property
self.update = function () {
self.y += self.speed;
};
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.