News for hackers. Stuff that matters.
Re:Great Tower Defense Game on Canvas by zbanks on Sunday November 07, 2010 @01:59AM (#1878892)
Wow! I'm surprised by the framerate, I'm getting ~50 in Chrome.

I really didn't think these sorts of speeds were possible using Canvas, especially when you're completely redrawing the screen each time.

For what it's worth, I unminified the source (from frozendefense.compressed.js) and posted it as a github gist. It makes it easier to peruse.

https://gist.github.com/665991

Re:Great Tower Defense Game on Canvas by wanderr on Sunday November 07, 2010 @02:04AM (#1878898)
In Firefox it always reported >40 fps, however I could see that it was dropping massive amounts of frames, to the point where creeps would be coming in the entrance and then be halfway across the screen.
Re:Great Tower Defense Game on Canvas by Roedou on Sunday November 07, 2010 @02:23AM (#1878931)
Pretty awesome for 1780 lines of code. Especially when 250 of them are just the maps.