Flash vs. Canvas
- egoplantt
-
egoplantt
- Member since: Oct. 15, 2011
- Offline.
-
- Forum Stats
- Member
- Level 01
- Blank Slate
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.
-
- Send Private Message
- Browse All Posts (11,077)
- Block
-
- Forum Stats
- Member
- Level 25
- Game Developer
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
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
- InnerChild548
-
InnerChild548
- Member since: Aug. 10, 2007
- Offline.
-
- Forum Stats
- Member
- Level 35
- Melancholy
- gumOnShoe
-
gumOnShoe
- Member since: May. 29, 2004
- Offline.
-
- Send Private Message
- Browse All Posts (15,244)
- Block
-
- Forum Stats
- Member
- Level 15
- Blank Slate
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.
- Wolfos
-
Wolfos
- Member since: Jan. 19, 2008
- Offline.
-
- Send Private Message
- Browse All Posts (11,077)
- Block
-
- Forum Stats
- Member
- Level 25
- Game Developer
- AhrimanZora
-
AhrimanZora
- Member since: Oct. 21, 2011
- Offline.
-
- Forum Stats
- Member
- Level 01
- Blank Slate
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.


