~~~~~~~~~~~~~~~~~~SPACE DEFENDER~~~~~~~~~~~~~~~~~~~ Press S to skip the intro. Arrow keys or WASD, space to shoot. Z spawns a UFO. It moves randomly around the screen. X spawns a starfighter. It points towards you forever and moves faster, but self-destructs when it crashes into you. C changes your weapon type from semiautomatic to automatic. You need to wait 5 seconds between changing weapons. Features zero-gravity, Atari-like graphics, and a a laser gun.
I looked at a lot of similar projects for the sine/cosine-based physics. Thanks! Enemy ship sounds were tweaked Scratch sounds, and the thrust sound and laser sound were found online. The music was composed by me. Still to do: Manual and automatic spawning modes 2/3/16: v1.6b: Made the ships a bit smaller, so there's more room to spawn more s 10/8/15: v1.6: Added a weapon change function. Automatic laser guns FTW :D 10/5/15: v1.5: Made it so that you can't move during the intro. I don't like it personally, and I'm going to change it sometime later. 10/3/15: v1.4c: Added a limit on the speed, aka. a small amount of friction. It shouldn't be very noticeable, though. 10/3/15: v1.4b: Manipulated the text render block a bit. 10/2/15: v1.4: Added an intro function with a custom text generator!! (All text was drawn by me.) Stay tuned, guys: We're definitely getting somewhere. 10/2/15: v1.3b: Tweaked the sounds a bit, fixed a glitch in the bullet. Working on a text generator function (see inside). 9/25/15: v1.3: I give up. I changed the sound to the classic Asteroids soundtrack. I may have an original soundtrack for the splash screen, but that comes later. 9/22/15: v1.2b: Some minor adjustments... New gun sounds, no more enemy spaceship thrust sounds. The spaceship now points up on startup. Still working on that soundtrack... 5/12/15: v1.2: Music! Let me know if it goes well with the game... 3/2/14: v1.1: Added explosion noises. Changed the starfighter UFO engine noise. 2/27/14: v1.0: Added two spawn-able enemy ships. 2/26/15: v0.1: Initial release.