Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Adventure is the start of a real-time RPG world using node.js and Websockets.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 resources
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 README.markdown
Octocat-spinner-32 server.js
README.markdown

Adventure!

Adventure is a proof of concept of making a massive real-time game in node.js. The backend database is custom coded for this specific use case and is available at http://github.com/creationix/world-db

The communication is using websockets with fallbacks (powered by socket.io). I have tested the game on Firefox 3.6, 4.0, Chrome 6, 7, Safari 5, Mobile Safari and Android browser.

How to Play

Clone the code and start a local server. Then scroll around the massive world. You can either drag the screen or use the keyboard arrows. There are no limits other than the ram of the server. Since each tile takes only one byte (yes 8-bits) of ram to store, it's pretty efficient.

Once you've chosen a place as home start drawing away. There are four layers in the map.

  • Top - Shift + Click
  • Mid - Shift + Alt + Click
  • Base - Click
  • Ground - Alt + Click

You simple click on a tile on the left (including the empty tile at top) and then click on the map to place it. When you see it appear that means it's round-tripped to the server and everyone who is watching that viewport just saw your change.

The Challenge

The game has no physics or moving characters, but it's still a game. To play, you need to stake out a place on the map, build you kingdom, and share the url (with the hash-tag) on twitter. Try to make the best landscape and even join up with neighbors. But beware. This is real-time and the moment you publish the url, people may try to deface it. It's your job to keep it tidy.

Have Fun!

Something went wrong with that request. Please try again.