3 ms·
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
by zbanks 16y ago
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 https://gist.github.com/665991
- wanderr 16y agoIn 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.
- Roedou 16y agoPretty awesome for 1780 lines of code. Especially when 250 of them are just the maps.