Awesome jQuery Space Mouse DOM Shooter

Sam Deering
Tweet

space-mouse-FTW
Hi guys, ever wanted to destroy a web page with a little mouse icon space ship??? Well, now you can! To play the game simply copy and paste the javascript code given below in the url bar and hit enter.

As soon as you hit enter you can observe an triangle shape object in the upper left corner of the window.

Controls

Navigate the mouse space ship with the following keys:

W = move up
A = move left
D = move right
Spacebar = shoot

Shoot Down Your Favourite Websites!

Just copy and paste the javascript below into your address bar and your away!

javascript:var%20s%20=%20document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='http://erkie.github.com/asteroids.min.js';void(0);

If that doesn’t work try the jQuery version:

jQuery(document).ready( function()
{
	jQuery.getScript('http://erkie.github.com/asteroids.min.js');
});

Free book: Jump Start HTML5 Basics

Grab a free copy of one our latest ebooks! Packed with hints and tips on HTML5's most powerful new features.

No Reader comments