Skip to content

drzygn/node-games-lobby

 
 

Repository files navigation

node-games-lobby

A matchmaking server and chat system for multiplayer online games.

The games must have a NodeJS back-end that implements a small number of methods required by the server.

A live demo is running at http://multiplayergorillas.com.

Features

  • Chat across games with private messages, announcements, lobbies, public rooms.
  • Games must conform only to a simple documented API.
  • Example games (tictactoe and gorillas) provided.

Why would this be useful to you?

  • You have some games you would like people to play.
  • You want to write games but you don't want to deal with the lobby, matchmaking and chat elements.
  • You are happy for those games to conform to a simple API for the sake of the aforementioned conveniences.

Requirements

  • bower for installing client dependencies.
  • mocha for running the tests.
  • redis for storing user sessions, redis-server on Ubuntu.

Getting Started

  • Clone this repository.
  • Install bower globally, npm install -g bower.
  • Install required modules, npm install.
  • Run the tests, npm test (requires mocha npm install -g mocha).
  • Start the server npm start and access it from a web browser.
  • Look at the code for the example tictactoe and gorillas games.

Future Improvements

  • Improved login and account management.
  • Games with more than 2 players.
  • Webservice API for games and account handling.
  • Pluggable matchmaking system.

Screenshots

In the lobby In a game of gorillas

License

MIT.

About

A lobby API for finding and playing multiplayer games online.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.8%
  • HTML 18.5%
  • CSS 3.7%