Mozilla unveils HTML5 MMO game demo - BrowserQuest

By Abhinav Lal | Published on 28 Mar 2012
Mozilla unveils HTML5 MMO game demo - BrowserQuest

Want to modernise your banking loan application?

Build an application that analyses credit risk with #IBMCloud Pak for Data on #RedHat #OpenShift

Click here to know more


In an effort to promote the HTML5 platform, Mozilla has launched a retro-style MMO adventure game demo based on the technology, called BrowserQuest. To that end, it has also released source code for developers, showcasing how the technology can be used today to create a real-time multiplayer game in a single webpage.

Releasing a statement about the game, Mozilla said in a blog post: "BrowserQuest is a tribute to classic video-games with a multiplayer twist. You play as a young warrior driven by the thrill of adventure. No princess to save here, just a dangerous world filled with treasures to discover. And it’s all done in glorious HTML5 and JavaScript."

Mozilla’s BrowserQuest game was developed by Little Workshop, and uses a new bi-directional server-browser communication technology called WebSockets. The game can be played in Chrome, Firefox and Safari, and with WebSockets, even with Opera. It will also run on Safari for iOS, and Firefox for Android.

BrowserQuest utilizes HTML5’s built-in tools to easily generate a 2D tile-based world, its audio APIs for sound, and the WebSockets layer to communicate with the backend server. Users will be able to access their game across platforms, with localStorage-based autosave features keeping track of everything. Chat features, and a user dashboard, are also be available.

You can check out the game here, read more about it here, and find the source code here.

Detailing how it all works, the blog post continues: "When you start to play, your browser opens up a WebSocket connection to one of several load-balanced game servers. Each server hosts multiple world instances and handles the player synchronization and game logic within all instances. Because the server code is running on Node.js, both the server and client codebases share a small portion of the same JavaScript source code…The mobile versions are more experimental than the desktop experience, which has richer features and performance, but it’s an early glimpse of what kind of games will be coming to the mobile Web in the future."

Abhinav Lal

Digit caters to the largest community of tech buyers, users and enthusiasts in India. The all new Digit in continues the legacy of as one of the largest portals in India committed to technology users and buyers. Digit is also one of the most trusted names when it comes to technology reviews and buying advice and is home to the Digit Test Lab, India's most proficient center for testing and reviewing technology products.

We are about leadership-the 9.9 kind! Building a leading media company out of India.And,grooming new leaders for this promising industry. Protection Status