Mozilla launched a massively multiplayer game “BrowserQuest†to demonstrate HTML5 gaming capabilities. Mozilla partnered with a French web design studio Little Workshop to develop this browser based game. The game is built with modern web standards like HTML5, CSS3, JavaScript.
BrowserQuest is browser based game and thousands of simultaneous players can play the game. It has an in-game chat to interact with other players and it also allows you to team up with other players to fight enemies together.
Mozilla says BrowserQuest is the demo for showing how the modern web technologies can be used to create multiplayer gaming experiences on a single web page. The game makes use of WebSocket for bi-directional communication between a client browser and server. The backend uses JavaScript which runs on top of Node.js, and each server hosts multiple world instances and handles the player synchronization and game logic within all instances. It uses HTML5 canvas to power the 2D tile based graphics engine and HTML5 audio for sound effects. CSS3 Media Queries help it to resize itself and adapt to many devices. Game progress is handled by the localStorage.
BrowserQuest is available across different browsers and platforms. It can played on Firefox, Chrome and Safari. Opera can also be used to play the game WebSockets enabled. It is compatible with iOS, Android devices running Firefox. The game is released under open source, source code can be found on GitHub.