What are the advantages/disadvantages of Canvas vs. DOM in JavaScript game development?

Viewed 23140

What are advantages and disadvantages of creating games in 'pure' DOM as compared to using canvas?

4 Answers

With canvas you can perform operations such as rotation that you can't do with pure dome without use some "heavy" tricks. Anyway the dom is faster and you can use it in every browser without problems. You must think about what are you going to use in the game, if you will use only basic operations use the dom otherwise choose the canvas.

Related