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?
- Download my project as a ZIP here: https://github.com/RamsesF/Pong/archive/master.zip.
- UnZIP my project and paste it where you can access it easily.
- 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.
- Open up your console/CMD and navigate to the project. You need to be in the Pong folder. (cd is your friend)
- When you have npm installed, use "npm install" to install all my used packages.
- When the packages are installed, use "node server.js" to get the server up and running!
- 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).
- 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:
- FlouwR: https://github.com/RamsesF https://twitter.com/FlouwRamses
- GregoireAmeye https://github.com/gregoireameye
Important testers:
- Mathias https://github.com/dallian354
- Esteban from GLADOS Workgroup https://github.com/thecodewizard http://estebandenis.ddns.net/