1 min read

Simple Games: Space Invaders

In this post, I demonstrate a very, very simple space invader game played in the web browser.
Over the last few weeks I've been explaining to my 8 year old son, Peter, how games are made and we have done a few experiments.

I've always liked the idea of games in the web browser and ever since I saw Scott Porter's "gamelib" javascript library back in 2004 or so I've been determined to see what I could do.
You don't need any sophisticated software to run or write the games and they can be played by everyone on any machine.

First off we made a very, very simple space invaders game. It has no real graphics but demonstrates a gameloop and some simple game principles.

You can play it here. Use < to move left, > to move right and spacebar to fire. To win the game you need to score 3000 points. If the spaceship gets to the bottom of the screen you loose a life. After 3 lives are lost the game ends. Right click the game and select "view source" if you are interested in what makes it tick!

Latest Jobs


Chicago, Illinois

Build a Rocket Boy Games

Edinburgh, Scotland
Lead Animation Programmer

Windwalk Games

Austin, Texas
Game Designer

Sucker Punch Productions

Bellevue, Washington
Campaign Director
More Jobs   


Register for a
Subscribe to
Follow us

Game Developer Account

Game Developer Newsletter


Register for a

Game Developer Account

Gain full access to resources (events, white paper, webinars, reports, etc)
Single sign-on to all Informa products

Subscribe to

Game Developer Newsletter

Get daily Game Developer top stories every morning straight into your inbox

Follow us


Follow us @gamedevdotcom to stay up-to-date with the latest news & insider information about events & more