User prompt
make the shield fall non-stop
User prompt
when the bullet hits the shield the shield is not destroyed, and instead the shield will bypass the bullets
User prompt
The shield will have only one layer and no other layer..
User prompt
shield will never appear when the game begins. For every 20 meteorites destroyed one shield will appear
User prompt
Introduce a new item shield whose functionality is the same as the meteorite
User prompt
remove shield from, the current game
User prompt
Increase the speed of the shield by 50% of it's current speed.
User prompt
Introduce a text field named "Shield" similar to what lives on the screen and that is connected to the shield which has been introduced in the game. The initial count of the shield is 0 and the maximum count that can be reached is 3
User prompt
Give me a prompt to fix this issue.
User prompt
fix the bug on shield that is it can touch the spaceship
User prompt
Allow the spaceship to be touched by the shield and not bypass it.
User prompt
increase the speed of shield falling by 50% of current speed.
User prompt
If the shield touches the spaceship the count of shield is increased by 1
User prompt
The lives is showing negative count when the game ends. Lives value should not go beyond 0
User prompt
meteorite will not be destroyed unless the meteorite is completely visible on the game screen.
User prompt
Score is increased only when the meteorite that are completely visible on screen are destroyed by the bullets fired by the spaceship
User prompt
The score is increasing by itself, correct the bug that is when the meteorites are destroyed by bullet only then the score should increase.
User prompt
meteorite should be completely visible on the screen to be destroyed or else the meteorite will not be destoryed
User prompt
Bullets will only destroy the meteorite which is clearly visible on the game screen.
User prompt
Increase the speed of the fall of the shield to 50% of it's current speed
User prompt
Maximum shield that can be collected is three. When the spaceship touches the shield falling from the top the shield count is increased by 1
User prompt
show a text similar to lives but it should be shield, and by default the shield will be zero
User prompt
Please fix the bug: 'ReferenceError: shields is not defined' in or related to this line: 'for (var n = shields.length - 1; n >= 0; n--) {' Line Number: 276
User prompt
Introduce a shield in the game and these are the functions and properties of the shield 1. Shield will never appear when the game starts. 2. After every 20 meteorites (irrespective of the type) are destroyed one shield will fall and the next shield will fall after the next 20 meteorites and so on. 3. To collect the shield the spaceship has to touch the shield and the shield can be touched by the spaceship
User prompt
Introduce a shield in the game and these are the functions and properties of the shield 1. Shield will never appear when the game starts. 2. After every 20 meteorites (irrespective of the type) are destroyed one shield will fall and the next shield will fall after the next 20 meteorites and so on. 3. To collect the shield the spaceship has to touch the shield.
===================================================================
--- original.js
+++ change.js
@@ -276,11 +276,13 @@
}
}
for (var n = shields.length - 1; n >= 0; n--) {
if (shields[n] && shields[n].intersects(spaceship)) {
- shields[n].destroy();
- shields.splice(n, 1);
- shieldCounter++;
- shieldTxt.setText('Shield: ' + shieldCounter);
+ if (shieldCounter < 1) {
+ shields[n].destroy();
+ shields.splice(n, 1);
+ shieldCounter++;
+ shieldTxt.setText('Shield: ' + shieldCounter);
+ }
}
}
};
\ No newline at end of file
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.