Awesome jQuery Space Mouse DOM Shooter

Sam Deering

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');
});

Win an Annual Membership to Learnable,

SitePoint's Learning Platform

No Reader comments

Comments on this post are closed.