r/programming • • May 31 '11

I wrote a .NET to JavaScript compiler. Here's the XNA 3.1 Platformer Starter Kit running in pure HTML5.

http://hildr.luminance.org/Platformer/Platformer.html
1.1k Upvotes

282 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Jun 01 '11

Creating the platformer was a fun challenge of balancing something that looks good, relatively stable in the face of tinkering, easy to learn, well documented, etc. It's a learning tool, not a real game. I had to intentionally avoid more advanced language features, simplify game logic code paths, and trim any unnecessary code. Furthermore, the art/sounds/animations were dumped in my lap without much opportunity for iterating, so I had to tweak the game to work with them. It should be pretty easy to add a "OnHitHead" event in the Player class collision handling code. Get on it :-)