This is a mirror of official site: http://jasper-net.blogspot.com/

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

| Sunday, September 11, 2011
image_thumb.png?imgmax=800

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.

Read more: Greg's Cool [Insert Clever Name] of the Day
QR: xna-platformer-game-ported-to-html5-as.html

Posted via email from Jasper-net

0 comments: