Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cvan/tanx-1

tanx multiplayer webgl game
https://github.com/cvan/tanx-1

Last synced: 3 months ago
JSON representation

tanx multiplayer webgl game

Awesome Lists containing this project

README

        

# tanx

tanx multiplayer WebGL game

[__online demo__](http://playcanv.as/p/aP0oxhUr "tanx game")

## installation & running

1. Install the Node dependencies:

npm install

2. Run the server:

npm start

Or:

node app.js

WebSocket and HTTP servers will be started on port `30043` by default. You can change the port or host via environment variables:

* `TANX_PORT=30043`
* `TANX_HOST='0.0.0.0'`

## usage

1. Fork the [tanx client](https://playcanvas.com/project/45093/overview/tanx) project.
2. From your fork's page, click the __Code__ nav link to open `client.js` in the PlayCanvas code editor (you should be at `https://playcanvas.com/editor/code//client.js`).
3. Find the line that reads `var socket = … = new Socket` and change the `url` like so:

http://localhost:30043/socket

4. Play your fork!

## changelog

##### v1.3.0 (16.02.15)
* added teams - 4 of [blue, red, green yellow] colours
* added scores - teams and players have score
* added end game scenario - first team to reach 32 kills
* added lobby and rooms - each room can handle up to 16 players, then new room will be created

##### v1.2.1 (10.02.15)
* added pickables: repair, bullets, shield

##### v1.1.0 (09.02.15)
* added Block object
* added tank-level collision
* added bullet-level collision
* merged [@cvan](https://github.com/cvan) pull request: [allow host/port to be changed via environment variables; update README with verbose instructions](https://github.com/Maksims/tanx/commit/837c2f34588b4060d8112afe3002dc1d7fabc77e)
* merged [@cvan](https://github.com/cvan) pull request: [code linting](https://github.com/Maksims/tanx/commit/f28b6c3259ed82f962957fd2f531cf916bbc6638)