Git Product home page Git Product logo

pong's Introduction

Pong Multiplayer

Pong with multiplayer, using Node.js and socket.io. Only two players, and unlimited spectators.

What did I use

  • Node.js
  • Express
  • Socket.io

How to get this thing working?

  1. Download my project as a ZIP here: https://github.com/RamsesF/Pong/archive/master.zip.
  2. UnZIP my project and paste it where you can access it easily.
  3. Make sure you have npm & node.js installed. https://nodejs.org/en/. Downloading node.js will have npm automatically installed. I personally used v4.4.0. Maybe I should update.
  4. Open up your console/CMD and navigate to the project. You need to be in the Pong folder. (cd is your friend)
  5. When you have npm installed, use "npm install" to install all my used packages.
  6. When the packages are installed, use "node server.js" to get the server up and running!
  7. Navigate to the HOST-IP ADDRESS via your favorite browser. You can look this up by typing "ipconfig" on the machine that is hosting the server. The server runs on port 8080. (hint: type :8080 after your host-ip adress in your browser).
  8. Have fun!

TO DO

  • Maybe update some CSS, or something.

Versions

V 0.1 (23-04-2016)

  • Basic login system.
  • Choosing between player and spectator.
  • Showing the playfield.
  • refresh-event which will update how many players and spectators there are.

V 0.2 (26-04-2016)

  • Movement made possible!
  • Spectating works
  • Players are now unable to choose Player when there are already two present.
  • Updated some faulty functions that were updating server vars (unwanted).

V 1.0 (27-04-2016) (CURRENT)

  • Holding controls instead of tapping is now functional.
  • Showing amount of spectators and score in HTML works
  • CSS layout is better now.
  • speedup ball is now functional.
  • Showing ball works.
  • Scores being saved at server
  • Win event and lose event has been made
  • Project is now finished.

Important contributors:

Important testers:

pong's People

Contributors

gregoireameye avatar ramsesf avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.