Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.
forked from german/pong

simple ping-pong game #socket.io #node.js

Notifications You must be signed in to change notification settings

cpbtechnology/US-CPB-Doughnut-Pong

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple ping-pong browser game (using canvas and socket.io on the client side). Node.js used as a back-end server.

To start the game you should install nodejs and npm: (http://nodejs.org/#download and http://npmjs.org/)

Then clone the game from github and install socket.io dependency:

$ git clone git://github.com/german/pong.git
$ cd pong
$ npm install

OR

$ sudo npm install

Then simply start the server with:

$ node server.js

Finally open two browser windows and point both to http://localhost:8081

Use 'Up' or 'Down' arrows to move your racket. Press Spacebar to start the round (only if two players are connected to the same room)

Tested and works in Google Chrome and Firefox

About

simple ping-pong game #socket.io #node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.6%
  • CSS 1.7%
  • HTML 1.7%