Skip to content

VFK/tic-tac-toe-online

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe Online Build Status

Open source massive multiplayer online tic-tac-toe game.

Overview

World of Warcraft has finally met a worthy competitor :) This project uses some nifty tools like Browserify for modular code and Gulp for building purposes. This project intended to be modern. Server side was tested on Node.js 0.9+. Client side does not use any dirty hacks or polyfills for ancient pre-browser era, so it should work in IE10+ and all browsers.

Configuration

As of now the game doesn't have any centralized way to manage configuration options. It should be added later on.

Server side

  • Port. In server/index.js, find
var server = new WebSocketServer({port: 8080});

Client side

  • Url for websockets connection. In client/index.js find
var ws = new WS('ws://127.0.0.1:8080');
  • Tracking code. In client/inc edit analytics file. Delete if not needed.
  • Advertisement code. In client/inc edit adsense file. Delete if not needed.

Building

The client side leverages Browserify so it must be built before using.

Install dependencies using npm:

npm install

As a build tool we use Gulp, so it needs to be installed globally:

npm install -g gulp

Now you can build your own game:

// Build development version
gulp dev

// Or build the production version
gulp prod

Build task will create a new folder called buildwith client-side files.

Usage

Run index.js in server folder through node:

node server/index.js

Open index.html from build folder in the browser. Enjoy.

About

Open source MMO tic-tac-toe game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published