User prompt
Please fix the bug: 'Uncaught TypeError: Cannot set properties of null (setting 'x')' in or related to this line: 'player.x = px;' Line Number: 348
User prompt
Add a starting screen ( with the title and a play button )
User prompt
Make the boss to take 6 hits to defeat it
User prompt
Make the boss to shoot the rockets less frequently, and less spread themed rather faster bullets in single direction and ricochet.
User prompt
Make the enemy ships to stay in one place too ( randomly ) also decrease the frequency of the rockets from enemies to spawn
User prompt
make the enemy space ship to take 3 hits to defeat it ( instead of 1 ), also at 0 point spawn in 2 enemies, 1 point add an enemy ship with the previous ones, continue the same until point 6, cap the number of ships to be 6
User prompt
For each point gained upto 5, add one more enemy ship in the screen
User prompt
Revert the logic, make random ships to spawn
User prompt
Fix after defeating the first 2 enemy ships, no ship is spawning in
User prompt
If there is no enemy ship spawn in +1 ship
User prompt
Start by spawning in 2 enemy ship and for each rocket defeated spawn in +1 enemy ship
User prompt
Get the hearts little bit to the left
User prompt
Slow down the enemy speed and bullet speed. And the bullet should only go vertically down ( don't target the player )
Code edit (1 edits merged)
Please save this source code
User prompt
Space Shooter: Alien Onslaught
Initial prompt
Hi Ava, Now I want to create a game based on space shooter. Game Mechanic: -> We control a space ship beginning from the bottom of the screen, which shoots out rockets. -> Enemies are alien space ship that follows from above the screen. -> Enemies shoot rockets at us too, and we have to dodge it. -> Certain enemies are different ( very rare to spawn ) which can give power ups. Gameplay: -> Make the ship to follow the clicked mouse, ( the ship should be constantly shooting the rockets ) -> The ship has 3 lives, when hit by enemy rockets, we loose health -> power ups from aliens: Fast shooting guns, extra life ( grants extra life ), destroy all ball ( grab to destroy everything ), shield ( to protect from enemy attacks for a brief time ) Gameplay mech: -> Clearing enemies grants points, enemies should go to random locations on top, should not come down, they shoot randomly. each alien ship defeated grants 1 point, when reaching 20 points, a single boss spaceship appears, when defeated we win ( the boss shoot rockets frequently, and in different directions that richochet the screens )
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});
A bomb. No background. Transparent background. Blank background. No shadows. 2d. In-Game asset. flat
Boss ship top down. No background. Transparent background. Blank background. No shadows. 2d. In-Game asset. flat
Enemy ship. No background. Transparent background. Blank background. No shadows. 2d. In-Game asset. flat
Spaceship for players. No background. Transparent background. Blank background. No shadows. 2d. In-Game asset. flat
make it greyish
Kinda a spike ball very red. No background. Transparent background. Blank background. No shadows. 2d. In-Game asset. flat
Diamond, . No background. Transparent background. Blank background. No shadows. 2d. In-Game asset. flat