nodePong/README.md

45 lines
848 B
Markdown
Raw Normal View History

2016-02-10 21:55:20 +11:00
# **nodePong**
nodePong is a multiplayer online Pong game based on socket.io and nodejs.
Users can play or spectate games.
2016-02-10 18:57:27 +11:00
2016-02-10 21:34:48 +11:00
# Install
2016-02-10 21:47:45 +11:00
clone project from git
2016-02-10 21:34:48 +11:00
```
git clone https://git.tetalab.org/frtk/nodePong.git
2016-02-10 21:47:45 +11:00
```
2016-02-10 21:55:20 +11:00
The app has a few nodejs packages dependencies. If you want to install them manually, follow the instructions below, else use the "node_modules" directory from the cloned project.
2016-02-10 21:47:45 +11:00
```
cd nodePong
npm install fs
npm install colors
npm install express
npm install http
npm install socket.io
```
# Parameters
2016-02-10 21:58:30 +11:00
- Server side: Parameters can be tweaked from "nodePong/server/server_params.js"
2016-02-10 21:55:20 +11:00
- *port* : http and iostream services port (default: 8042)
2016-02-10 21:58:30 +11:00
- ...
2016-02-10 21:47:45 +11:00
2016-02-10 21:58:30 +11:00
- Client side: Parameters can be tweaked from "nodePong/client/ui/nPong_params.json"
- ...
2016-02-10 21:47:45 +11:00
2016-02-10 21:58:30 +11:00
2016-02-10 21:47:45 +11:00
# Run
From the nodePong directory,
```
nodejs nodePong.js
2016-02-10 21:34:48 +11:00
```