Play Demo (Requires Firefox 1.5)
My implementation is nearly identical to the Mac/Windows application -- the graphics and physics are all identical, since they're based on a decompilation of the Java version of NS-Tower. The main differences are a lack of support for different platform types: springs, left/right, and up/down, and difficulty levels. I'm particularly curious how NS-Tower generates platforms for the Easy, Medium and Hard difficulties. Of course, if the folks at Nagi-P don't like my tribute, I'm perfectly happy to take it down.
The HTML Canvas provided all the functionality I needed (images and colored rectangles), so most of the work lay in getting the physics and feedback just right. The game runs fairly smoothly at 20 FPS in Firefox on my laptop. There's occasionally some lag while scrolling, but I'm afraid this is unavoidable, since the entire canvas is being redrawn each frame. There was one particularly annoying bug in Firefox's canvas: transparent GIFs and 8-bit PNGs are garbled when drawn to a canvas. 24-bit PNGs seem to work just fine, though.
Please leave comments! It's what makes writing worthwhile.comments powered by Disqus