up vote 11 down vote favorite
1

Now that Flash is largely being replaced with HTML5 elements (video, audio, canvas, etc.) are there any good examples of web-based games built on completely open standards (meaning Javascript, HTML and CSS)? I see a lot of examples of pure HTML5 implementations of what was once only in Flash (like stuff here: http://www.html5rocks.com/) but not many games, a domain which still seem dominated by Flash. I'm curious what's possible and what the limitations are.

flag
1  
Should be community wiki - listy and 'good' is subject to interpretation. – Noctrine Jul 15 at 21:07

10 Answers

up vote 3 down vote

In the interest of exploring just how far you can take the newest crop of browsers, I and some colleagues cross-compiled the open-source Java port of Quake II to Safari/Chrome (it ought to work on Firefox at some point as well, though it didn't initially, largely for performance reasons). The project is here: http://code.google.com/p/quake2-gwt-port/

It still requires some care and feeding to get it up and running (e.g., WebGL still isn't enabled by default in any shipping browser), but we uploaded a video here: http://www.youtube.com/watch?v=XhMN0wlITLk (sorry it's so dark -- gamma issues remain) and you can see our Google I/O talk here: http://code.google.com/intl/fr-FR/events/io/2010/sessions/gwt-html5.html

I don't know how long it's going to be before we can realistically depend on all these new browser features (WebGL, WebSocket, audio/video, local storage, et al), but if it all comes together it could make a huge difference in the ability to ship games directly on the web. But there are still a lot of hurdles that remain (e.g., don't hold your breath for Microsoft to implement WebGL in IE10).

link|flag
up vote 1 down vote

Coincidentally, there was a question on Slashdot today about html5/javascript gaming:

http://ask.slashdot.org/story/10/07/14/0632238/JavaScriptHTML-5-Gaming

It mentions specifically Galactic Plunder, a side-scrolling space shooter:

http://dougx.net/plunder/plunder.html

link|flag
up vote 1 down vote

Have a look at these websites:

link|flag
up vote 1 down vote

There is a lot of hype around HTML5 but to say that Flash is largely being replaced by it is an overstatement. While video and audio tags may gain traction, gaming will be one area that holds out for a long time, not just because of better tooling and performance, but also because there is a business infrastructure built around distributing Swf files, that wouldn't easily adapt to HTML and js. The html5 games I have seen using canvas are roughly where flash was 7 years ago, and by the time ie9 is widely distributed enough that canvas is a viable option, Flash will have already introduced it's planned 3d and possibly hardware acceleration features.

link|flag
1  
If Adobe doesn't get their act together Flash will be replaced by HTML5 and I personally won't shed a tear. – Simuri Jul 15 at 20:56
@Simuri - I kind of agree. I've used their Flex stuff professionally, and compared to the way Sun manages Java, I'd say Adobe is a lot more... sloppy (for lack of a better word). – weiji Jul 16 at 7:48
1  
I certainly agree that Adobe need to get their act together. But HTML5 is so obviously just the latest buzzword (like AJAX, Web2.0 previously) and not a real technology you'd want to go out and use right now. – Iain Jul 16 at 13:46
I disagree. With the recent announcements from Microsoft about IE9 embracing the HTML5 technologies, the only thing really missing is a decent IDE. And I guarantee you that the people behind both Dreamweaver and Visual Studio are trying to figure out just that. This may be early days, but the time to start thinking about using these technologies--and establishing best practices--is now. – Ryan Corradini Jul 17 at 1:38
@Simuri care to explain why? Adobe is far from perfect but there seems to be unwarranted animosity towards Flash (by the way some people carry on you would think Flash stole their lunch money in school). The biggest gripe I have with HTML5 is the lack of consistency across broswers, the lack of performance, and I am not a fan of JavaScript (I like strict languages) – Allan Jul 22 at 9:56
show 1 more comment
up vote 1 down vote

EA's Lord of Ultima is probably the most visually impressive Javascript/HTML based game I've seen.

Note: It a strategy game and not an action title so while it has a nice smooth scrolling map, there isn't anything beyond clicking on buttons as far as direct interactivity goes.

link|flag
up vote 1 down vote

"I'm curious what's possible and what the limitations are."

The limitations are browser-based. If you're using something hot like the Webkit nightlies, there's basically nothing that flash can do that the browser can't do natively, such as:

  • 2d Graphics (via canvas) with rotation, scaling, opacity, etc.
  • 3d (via canvas and WebGL)
  • Audio (via the audio tag, though it currently sucks even in browsers that support it)
  • HTTP (via XMLHTTPRequest)
  • Local Storage (via the localStorage API)
  • Sockets (via Web Sockets)
  • SVG
  • Video (via the video tag)

AFAIK that's all possible in Google Chrome as well (and if it's not, it will be soon). Sounds like a complete gaming environment to me :)

(I included links to all this stuff in my first draft but StackExchange wouldn't let me post them since I'm new; sorry!)

link|flag
up vote 0 down vote

Even though controls are screwed up/need work, I am fond of Akihabara - http://www.kesiev.com/akihabara/

link|flag
up vote 0 down vote

Google Pacman has to be one of the more impressive JS/HTML games I've seen (granted, it's the only one I've seen, but it's still really impressive :)

Source Code locations

link|flag
1  
not HTML5, just DHTML I believe. Plus the sound was done through Flash. This was all to get maximum compatibility. – Iain Jul 15 at 19:40
up vote 0 down vote

There are excellent tutorials for the Akihabara Libraries put together by Darius Kazemi and Darren Torpey at: Akihabara Tutorials

link|flag
up vote 0 down vote

FreeCIV: http://www.freeciv.net/

Plus: They are doing HTML advocacy.

link|flag

Your Answer

get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.