News for hackers. Stuff that matters.
Re:Illuminated.js – 2D lights and shadows rendering engine f... by leeoniya on Friday May 11, 2012 @10:42AM (#3959415)
try http://www.kineticjs.com/

they use multiple canvas layers. from working a lot with canvas lately, the fastest was to draw to canvas is not to draw to it :). if you have a scrolling bg that is static, you can just use a bg image sprite and scroll it via CSS/js. anything that can be done with a sprite should probably be done with one.

even for collisions etc, you're best off doing all the logic for your shapes and manipulating a DOM element (or even a mini-canvas) than re-rendering an entire huge canvas.

There are no comments on this comment yet.