Be a Supporter!

Flash vs. Canvas

  • 468 Views
  • 6 Replies
New Topic Respond to this Topic
egoplantt
egoplantt
  • Member since: Oct. 15, 2011
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Flash vs. Canvas 2011-10-15 03:10:43 Reply

Has anyone tried programming something with the HTML canvas element? Do you think this will be the future of web design? I made a minesweeper port of it to try it out.

http://johnnydavidson.byethost17.com/gam es/minesweeper/

I haven't tried Adobe Edge yet, as it doesn't run on Windows XP. Has anyone tried it?

Wolfos
Wolfos
  • Member since: Jan. 19, 2008
  • Offline.
Forum Stats
Member
Level 25
Game Developer
Response to Flash vs. Canvas 2011-10-15 04:54:29 Reply

Hopefully... A single advertisement makes the time left on my battery go down by at least an hour.

InnerChild548
InnerChild548
  • Member since: Aug. 10, 2007
  • Offline.
Forum Stats
Member
Level 35
Melancholy
Response to Flash vs. Canvas 2011-10-15 12:40:00 Reply

html5 + js is pretty neato. i've seen its implementation stand up with flash games. and from observation only it seems some of javascript's trig/graphics functions execute much faster than flash's. plus, the images are cached by the browser so + 1

what i'm worried about with javascript is some one hacking my game; obfuscation only goes so far. html5 games require space for assets while swfs are pack-able and easily distributed.

i've always kept an open mind about flash vs html5 debate. feel free to attack any of my statements


BBS Signature
InnerChild548
InnerChild548
  • Member since: Aug. 10, 2007
  • Offline.
Forum Stats
Member
Level 35
Melancholy
Response to Flash vs. Canvas 2011-10-15 12:43:53 Reply

oh, and i like your mine sweeper game


BBS Signature
gumOnShoe
gumOnShoe
  • Member since: May. 29, 2004
  • Offline.
Forum Stats
Member
Level 15
Blank Slate
Response to Flash vs. Canvas 2011-10-17 08:38:43 Reply

I use html 5 on my site for masking images, but I don't plan (yet) to implement any games in the package. I hate debugging in the browser more than I hate debugging in flash (which is saying something). Having to deal with cross browser support is also a huge hassle. Maybe a long time after all of the standards are implemented and a sufficient ide exists I'll try it out. I'm sure eventually canvas/javascript will be huge. I'm just not sure that that is any time soon.


Newgrounds Anthology? 20,000 Word Max. [Submit]

Music? Click Sig:

BBS Signature
Wolfos
Wolfos
  • Member since: Jan. 19, 2008
  • Offline.
Forum Stats
Member
Level 25
Game Developer
Response to Flash vs. Canvas 2011-10-17 15:36:23 Reply

What I use HTML5 for is embedding Flash.

AhrimanZora
AhrimanZora
  • Member since: Oct. 21, 2011
  • Offline.
Forum Stats
Member
Level 01
Blank Slate
Response to Flash vs. Canvas 2011-10-23 20:58:18 Reply

Canvas has faster load times, and depending on the browser, really good caching. There is also caching at the canvas level available. I'm created an isometric rendering engine drawing from a SQL database with fog of war. Even with the map completely visible, repainting on every mouse move is fast in chrome. Would it be nice to have layering without repaint? Yes, but there are other algorithms to speed that up (which I haven't implemented since Chrome is so fast right now).

Here's the other advantage: mousewheel to zoom, click drag to pan, right click to inspect, left click to move/interact.