Super Mario Gravity

The other day I mentioned there is a JS implementation of Super Mario brothers. I also mentioned that the physics feel about right compared to the real game.

Apparently someone did some analysis on the series and correctly concluded that the gravity physics are totally not realistic (shocking). The real nuggets are that he can jump 5 times his body height and should be unconscious on the way down since his falls achieve 9.31 g, which should render a human unconscious without a G-Suit. Maybe those are special overalls after all.


JS Super Mario Brothers

Super Mario Brothers JS

Here’s Super Mario brothers rewritten in JavaScript. It’s remarkably well done, even the physics closely match that of the original game. The only thing I noticed was a slight lag in Firefox 3.0.5 which I suspect might be due to the speed of the events rather than the actual game.

There have been several attempts to port the classic game to the web including this one which is fairly complete for 14kB of JavaScript and uses <canvas/>, though I think the one above is more like the original game.