jjwall / multiplayer-pong

Multi-player pong game built with Node!

Home Page:https://png-game.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi-Player Online Pong Game


This is a hobby project to further my understanding of WebSockets and to practice building a game engine from scratch. It is a multi-player pong clone that is built primarily with JavaScript, jQuery and Node.js. JQuery UI is used for the messaging system and NippleJS was used for joystick controls on mobile devices.

To run the app

npm install
node server.js

Try it out online!

Currently, the game is hosted on Heroku: https://png-game.herokuapp.com/

Creating or Joining a Game

  • Clicking "New Game" will take you straight to the game and generates a game ID for the new game
  • The game will not officially be created until a player clicks "Join" in the game
  • Game IDs are just 5 random letters and numbers that will route to your game
  • If you want to join an existing game, click "Join" on the row that corresponds to the desired Game ID
  • If there are already 2 players in the game you can still join but only as a spectator

Controls

  • First player that joins a game will be the left paddle and second player will be the right paddle
  • Game will begin once both players have clicked "Ready"
  • Use arrow keys to move up or down
  • NippleJS' joystick allows for mobile play as well
  • A joystick will be created wherever you touch on the screen
  • The joystick will move to a new spot if you touch far enough away

About

Multi-player pong game built with Node!

https://png-game.herokuapp.com/


Languages

Language:HTML 57.6%Language:JavaScript 40.5%Language:CSS 1.9%