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');
});
Sam Deering Sam Deering
Sam Deering is a Front-end Web Developer who specialises in JavaScript & jQuery. Sam is driven and passionate about sharing his knowledge to educate others.

No Reader comments

Stay ahead of the game Exclusive content for developers and digital experts Go Premium