Re:Space Invaders 404
by tieTYT on Friday June 07, 2013 @01:30PM
(#5840272)
This seems to be done with divs and dom manipulation. Anyone know why they didn't use HTML5 canvas for this? I'm curious because I'm currently making an HTML5 canvas game.
[ Parent
| on HN ]
Is it compatible with pre-canvas browsers (legacy IE and so forth)? That could be a valid reason particularly if it was written a while ago.
Sure, that's a valid reason. I guess I should have stated the intent of my question: Am I going down a bad path by trying to make my game with canvas when I could be doing it with a bunch of divs like this page?
For writing a new game I'd go Canvas generally. It will perform far better in many cases, will often be easier to develop/maintain, and supporting legacy IE and older mobile browsers is just going to drain your time for little gain.
Of course your target audience, if you have a more specific market in mind, may make another decision for you!
Arguably, canvas should be more optimized for gaming. Especially with the use of WebGL and etc.