Friday, September 09, 2011

The XNA Platformer game ported to HTML5... as in wow (and you can get the source too. wow++)

David Rousset - HTML5 Platformer: the complete port of the XNA game to <canvas> with EaselJS

After a couple of hours coding with JavaScript, I’ve finally finished porting the XNA 4.0 Platformer game sample to HTML5/Canvas with the help of the EaselJS gaming framework. This article will provide you the game and the story of some of the questions I’ve asked myself while coding it. If you’d like to know how the game works, simply read the JavaScript commented code available at the end of this article. Please note that my main goal was to better learn JavaScript by writing pure JS code (with no form of dependency to the DOM) and to write a cross-browsers working game and cross HTML5 compatible devices when possible also.

You can play the game directly inside this iframe (left & right arrows keys to move & W to jump). Just press the “Start” button to launch the download sequence and the game itself.

image

..."

Holy cow... And it's even playable.

1 comment:

Admin said...

i found another one where you will find everything about html5,templates,apps and more. All in one place > hope this will help you all.

http://html5arena.blogspot.com/