Friday, May 23rd, 2008

JavaScript Super Mario Kart

Category: Games, JavaScript

Jacob Seidelin keeps on going, and has created a Super Mario Kart prototype:

It uses the canvas element to do most of the rendering and should work in both FF2, FF3, Opera(9.27 and beta) and Safari 3.1.1. There are a few glitches in Safari in the kart sprites, but other than that it should be playable. Also, if you’re using WebKit nightly builds, make sure you’re using the latest, as some of the recent ones had some canvas problems. I haven’t even considered getting IE support, sorry.

The (minified) code weighs in at about 11 Kb, but unlike the Mario game from last month, this one uses several external image files. This was more a test of how smooth I could get a game like this to feel, anyway, so filesize wasn’t an issue. I think it runs pretty ok, though.

There are a couple of rendering settings you can play with. “Quality” controls how many vertical lines are rendered, “Screen scale” controls the size of the screen (duh). Both trade visual appearance for performance.

Give it a ride.

Posted by Dion Almaer at 6:55 am

4.3 rating from 48 votes


Comments feed TrackBack URI

Awesome! The right game for my last 10min @ work for today :)
I really started laughing when Princess Peach just drove in circles… very cool :)

Comment by polysign — May 23, 2008

I’m impressed. Well done.

Comment by cody — May 23, 2008

Brilliant :))))
Who says Open Web cannot be 100% COOL…!! ;)

Comment by polterguy — May 24, 2008

Leave a comment

You must be logged in to post a comment.