Un clone de Pong multijoueur écrit en NodeJS
Go to file
frtk b5064543e4 version v0.0.9 2016-02-13 14:49:19 +01:00
client version v0.0.9 2016-02-13 14:49:19 +01:00
node_modules version 0.0.1 - HTTP & SocketIo services on server 2016-02-10 10:36:00 +01:00
server version v0.0.9 2016-02-13 14:49:19 +01:00
LICENSE version 0.0.1 - HTTP & SocketIo services on server 2016-02-10 10:36:00 +01:00
README.md updated README 2016-02-10 14:14:43 +01:00
nodePong.js v0.0.7 2016-02-12 20:05:23 +01:00
npg_app.js version v0.0.9 2016-02-13 14:49:19 +01:00
package.json version v0.0.9 2016-02-13 14:49:19 +01:00
version.md version v0.0.9 2016-02-13 14:49:19 +01:00

README.md

nodePong

nodePong is a multiplayer online Pong game based on socket.io and nodejs. Users can play or spectate games.

Install

clone project from git

git clone https://git.tetalab.org/frtk/nodePong.git

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.

cd nodePong
npm install fs
npm install express
npm install http
npm install socket.io

Parameters

  • Server side: Parameters can be tweaked from "nodePong/server/server_config.js"

    • port : http and iostream services port (default: 8042)
    • ...
  • Client side: Parameters can be tweaked from "nodePong/client/ui/client_config.js"

    • ...

Run

From the nodePong directory,

nodejs nodePong.js