It’s time for some gaming action with a new HTML5 game demo: BrowserQuest, a massively multiplayer adventure game created by Little Workshop (@glecollinet & @whatthefranck) and Mozilla.
Play the game: browserquest.mozilla.org
Even better, it’s open-source so be sure to check out the source code on GitHub!
Watch a screencast:
A multiplayer experience
BrowserQuest can be played by thousands of simultaneous players, distributed across different instances of the in-game world. Click on the population counter at any time to know exactly how many total players are currently online.
Players can see and interact with each other by using an in-game chat system. They can also team up and fight enemies together.
BrowserQuest is a game of exploration: the more dangerous the places you go, the better the rewards.
Powered by WebSockets
WebSockets are a new technology enabling bi-directional communication between a browser and a server on the web.
Server code is available on Github.
Built on the Web platform
BrowserQuest makes extensive use of different web technologies, such as:
- HTML5 Canvas, which powers the 2D tile-based graphics engine.
- Web workers, allowing to initialize the large world map without slowing down the homepage UI.
- localStorage, in which the progress of your character is continually saved.
- CSS3 Media Queries, so that the game can resize itself and adapt to many devices.
- HTML5 audio, so you can hear that rat or skeleton die!
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. Give it a try with your favorite mobile device!
Join the adventure
Want to be part of BrowserQuest? Create your own character and venture into the world. Fight enemies by yourself or with friends to get your hands on new equipment and items. You might even stumble upon a couple of surprises along the way…
About Paul Rouget
Paul is a Firefox developer.