2016-02-10 20:39:41 +11:00
|
|
|
# **Multiplayer online Pong Game using nodejs and socket.io**
|
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
|
|
|
```
|
|
|
|
|
|
|
|
nodejs dependencies: packages already included in the "node_modules" directory, or remove dir and install them manually
|
|
|
|
|
|
|
|
```
|
|
|
|
cd nodePong
|
|
|
|
npm install fs
|
|
|
|
npm install colors
|
|
|
|
npm install express
|
|
|
|
npm install http
|
|
|
|
npm install socket.io
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
# Parameters
|
|
|
|
|
|
|
|
- Server:
|
|
|
|
Server parameters can be tweaked from "nodePong/server/server_params.js"
|
|
|
|
- *port*: http and iostream port (default: 8042)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Run
|
|
|
|
|
|
|
|
From the nodePong directory,
|
|
|
|
|
|
|
|
```
|
|
|
|
nodejs nodePong.js
|
2016-02-10 21:34:48 +11:00
|
|
|
```
|