This is also an aesthetic choice; Most current canvas-based games tend
to use sprites which reminds of the 8-bit era, whereas CSS3 can be
used to make flat boardgame interfaces pretty easily (and without the
use of images). It opens up for smooth CSS transitions, gradients,
shadows / glow and other nice things. I am using this latter approach
for a Scrabble clone which I am developing:
http://www.flickr.com/photos/kapten/5444697062/sizes/o/in/photostream/

Drag-drop seems is much easier in the DOM than in canvas, but I'm sure
a skilled JS developer can accomplish it in canvas as well.

Sorry if I'm a little off topic :-)

On Sat, Feb 12, 2011 at 4:03 PM, Leandro Linares <[email protected]> wrote:
> Hi all,
>
> I'm currently developing games based on javascript, and I have a big
> doubt: what are the advantages/disadvantages of canvas vs. DOM in
> javascript game development?
>
> My question arises from Paul Bakaus' talk about Aves Engine, where he
> defends that css3 and DOM manipulation is faster and scalable than
> html5 canvas (Perfectly explained on
> http://paulbakaus.com/2010/07/19/why-canvas-is-not-an-obvious-choice-for-web-games/)
>
> I tested run two alike games, each developed with one of both
> methodologies (canvas and dom), and canvas based game ran very slow on
> smartphones, while the DOM based game ran very well. On desktop
> browsers, both games ran with no problems.
>
> So, question is: which one technology is the best choise (present and
> future) for browser game development?
>
> Thanks,
> Leandro.
>
> --
> To view archived discussions from the original JSMentors Mailman list: 
> http://www.mail-archive.com/[email protected]/
>
> To search via a non-Google archive, visit here: 
> http://www.mail-archive.com/[email protected]/
>
> To unsubscribe from this group, send email to
> [email protected]
>

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to