Project Description

From school, I got an assignment where I had to create ‘pong’ using javascript we had 2 weeks for this but I was done on the first day, so I thought why not make it multiplayer? So, I did. For the networking I used ‘socket.io’ since it was easy to use and had everything I wanted for this project. After around one week I was done researching and creating pong with networking since I had one week left. I started to create a ‘base’ for networking with a room-system I could use for other projects with networking.

Information

  • Project-type: Game

  • Software Used: Socket.io

  • Language(s) used: Javascript

  • Role(s): Lead & Only Programmer

  • Code: public


Pong

While making pong in javascript and making it in just one day while I had 2 weeks for this project I decided to make it multiplayer using socket.io for all movement & collisions I wrote my own code. Collision work by using ‘sphere and cube’ colliders since those are the easiest to create and the only ones needed for this project. Overall this project was great for learning more about networking and how collisions work.



RoomSystem

After creating pong with socket.io I decided to create a ‘RoomSystem’ that could be used for all coming projects using socket.io for this system I created 2 options public server everyone can join and a private server everyone can join but you need a password. The thing I was most interested about was how to set it up and how do you create a ‘room’ that has both public and private options in javascript. My solution was when there is a password it private else its not. And this worked out perfectly.