Code edit (1 edits merged)
Please save this source code
User prompt
Space Defender
Initial prompt
Build a simple retro-style space shooter called 'Space Defender'. The player controls a spaceship at the bottom of the screen and shoots upwards. Enemy ships appear from the top and move down. Each destroyed enemy gives points. If an enemy touches the player, the game is over.
/****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
}); /****
* Initialize Game
****/
var game = new LK.Game({
backgroundColor: 0x000000
});