JavaScript
Article
By Sam Deering

Awesome jQuery Space Mouse DOM Shooter

By Sam Deering
Help us help you! You'll get a... FREE 6-Month Subscription to SitePoint Premium Plus you'll go in the draw to WIN a new Macbook SitePoint 2017 Survey Yes, let's Do this It only takes 5 min

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.

--ADVERTISEMENT--

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');
});
Login or Create Account to Comment
Login Create Account
Recommended
Sponsors
Get the most important and interesting stories in tech. Straight to your inbox, daily.Is it good?