Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is HTML5 canvas capable of rich complex games like Flash?

Also, since it takes so long for a standard to come out for things like HTML, is it possible that the <canvas> in HTML5, though it may not be replaced in specs, will be updated often in the browser so that it can get better and better like Flash did/does in its various iterations?

In other words, we may have <canvas> ten years from now but the canvas of today will not be the canvas of five years from now, except in name?

like image 493
johnny Avatar asked Feb 26 '23 06:02

johnny


1 Answers

The short answer is, currently, and in the foreseeable future, no.

First, you need to realize that it's not just HTML5 we're talking about here. Javascript is also needed for the animation, game logic, 2D/3D engine, etc. And although Actionscript performance is very poor, Javascript performance is abysmal compared to that. In addition, Flash has a mature and developed IDE and a set of drawing tools that allow the creation of complex vector graphics and animation. No such things exist for <canvas> as far as I'm aware of.

As for the specifications part, again, impossible. Adobe controls the IDE, the language specifications and the client-side player for Flash. This basically means that they can do whatever they want with it. If you don't like any of the changes, don't buy/use their product. This means that they can develop their product in whatever direction they see fit, and at a pace the W3C will never be able to match.

HTML on the other hand, is very different. The W3C has to sit down with the major browser vendors, as well as listen to the web developers and end users. And even though flashy, interesting features like <audio> and <canvas> are at the top of every web developer's wishlist, backwards compatibility is also incredibly important to the specifications. This is one of the reason why development on the specifications is so slow - the specifications do not just depend on the W3C rolling out them out - it's also browser vendors adopting the specs, web developers using the features, and end users upgrading their browsers. None of that is going to change with HTML5, so why do you expect the speed of development to pick up?

like image 172
Yi Jiang Avatar answered Mar 11 '23 08:03

Yi Jiang