Super Mario Kart, Javascript style


Jacob Seidelin is fast becoming the Ben Heckendorn of Javascript games. You may remember that in early April, Seidelin programmed all of Super Mario Bros. into 14 Kb of Javascript code. This month, he’s tackled Super Mario Kart in about 11 Kb of code.

It’s not the full game, however.

“So far, it’s just racing. No weapons or any of that fancy stuff. At the moment, you can choose from 3 different drivers (Mario, Luigi and Princess Peach) and 2 different maps (Mushroom Cup Round 1 and 2). There is no lap count, no timer and no finish. You can just race around forever and try to beat the others (it’s not hard, especially if cut a few corners). The AI is rather crude, but seems to work ok for the time being.

There is (simple) collision detection against the boundaries of the map and the colored “blocking” blocks, but not against the karts, so you can’t crash into the other drivers. Drive safely, anyway!”

But hey, it’s Javascript. Very cool, nonetheless. Check out Seidelin’s blog post here, which links to the game.

via Ajaxian