4 ms·
If you're going to put 'Who needs Flash' in the title then this is low hanging fruit. :-) Has anyone got any examples of more complex games in HTML/JS? I'd be
by andybak 17y ago
If you're going to put 'Who needs Flash' in the title then this is low hanging fruit. :-)
Has anyone got any examples of more complex games in HTML/JS? I'd be interested to see how far people can push performance. The only benchmarks I remember seeing currently put Canvas+JS at a significant disadvantage over Flash but I'd love to be corrected on that.
- chime 17y agoJS/HTML5 games certainly won't replace every Flash game but given enough time, there will be a new ecosystem for these games. When Flash games came out, this is what everyone said and compared them to PC games. But now we have hundreds of thousands of Flash games coexisting with PC/Console games. I think JS games will flourish because they are so easy to make compared to Flash or PC games. Also, they work in almost all the new browsers/devices. Even though the speed/performance may not be up to par, good games will be made. And I'll do my best to make that happen. It is so much fun making these games. Seriously. Give it a shot. Flash games are a headache to build/deploy compared to plain-JS.
- WilliamLP 17y agoI have yet to see a game written in Canvas + JS that was anything but explicitly an advocacy demo for Canvas + JS. I don't think anyone is writing games with the main focus being to create something for the game's sake that people want to play. (A good metric would be, how many games or even demos are written in Canvas + JS where the author doesn't think it's important to mention the platform it was written on in the title.)
- nihilocrat 17y agoThis is a much better example of games you might actually see on flash portals, done in HTML5: http://www.kesiev.com/akihabara/ http://www.kesiev.com/akihabara/
- mikepurvis 17y agoOh wow, those are great. It's been in my mind for years (basically since I discovered Comet) to create an in-browser 2D MMORPG based on a very large programmatically-generated trackable map. Looks like Legend of Sadness has got a start on at least some of that.
- mcantelon 17y agoImpressive how fast and smooth his games are.
- bd 17y agoThe key to Akihabara performance is small number of actual pixels being drawn/computed. Resolution of game's <canvas> is just 320x240 (check "view image" in Firefox) which is then blown up by browser renderer to 640x480 (in a same way how you can resize image in CSS). Thus you get 4x as many pixels and cool retro 8-bit look with a lot of work done by browser's C++ code instead of much slower JavaScript. Till we don't have hardware acceleration for <canvas> tag, unfortunately demos and games are going to be quite limited.
- mcantelon 17y agoThanks for the info!
- mcantelon 17y agoHere's my canvas-driven game where you hunt bankers for sport: http://mikecantelon.com/demo/demo_blood_funnel.html http://mikecantelon.com/demo/demo_blood_funnel.html Targeted to Chrome: It's pretty slow in Firefox, alas, and sound doesn't work well in Safari. Doesn't compare to more sophisticated Flash games, and my engine cries for optimization, but I think we're going to see a lot of HTML 5 games emerging.
- shawndumas 17y agohttp://www.effectgames.com/effect/ http://www.effectgames.com/effect/
- postfuturist 17y agoThose games look and play great (at least on Chrome).