I know HTML5 is great for web games, but I don't really know if it's possible to develop online games with multiple users, keeping everybody synchronized and handling logins, et cetera. Is it possible to do this?
|
You can't write it with HTML5 alone. You will always need scripting and a server to handle communication between users, because of the security limits of browser scripting, and also to prevent cheating. Many people have written multiplayer html5 games, even I have. The use of html5 itself is probably not the most important part of it. Most of the things needed (if not all) have been available in html 4.01 as well. The exception is canvas, but canvas is slower than svg, and svg was available in lots of browsers already. I think what really spawned the "html5 game" mania is the ability to make server side apps in javascript. This means that all the client side programmers can suddenly make the entire system themselves, and they are usually the creative people when it comes to stuff like games. Not to mention that JS is so easy that even your grandma could program with it. Maybe. Update after comment from OP:A common architecture for a browser game would be
Or in terms of actual "languages":
There you are. A complete internet game written only using javascript and html. Lovely. |
|||||||||||||||
|
|
Take a look at the article at http://smus.com/multiplayer-html5-games-with-node and also the source provided with the article. Note that this also uses JavaScript for networking. |
|||||||||||||||
|