Code edit (1 edits merged)
Please save this source code
User prompt
The current level should be displayed in the top-left corner of the screen.
User prompt
There should be a level system. The current level number should be displayed at the top-right corner of the screen. The number of enemies in the current level should be displayed at the top-left corner. When the player kills all enemies, the game should automatically progress to the next level. In each new level, the score awarded for killing enemies should increase multiplicatively (e.g., doubled each level). Example: Level 1: each enemy = 10 points Level 2: each enemy = 20 points Level 3: each enemy = 40 points
User prompt
prevent enemies from moving outside the screen area.
User prompt
When I shoot an enemy, they should be removed instantly
User prompt
If I shoot the enemy, the enemy should die
Code edit (1 edits merged)
Please save this source code
User prompt
Space Wars: Galactic Showdown
Initial prompt
make me space wars game
/**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 });
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});