Giter Site home page Giter Site logo

pong's Introduction

Pong

This is a multiplayer implementation of the old Atari Pong game. Multiple pairs of players can play simultaneously on the server.

It is hosted on socketpong.herokuapp.com and can be played there.

##Gameplay When a user connects to the server (visits the start page), they will see a page displaying a link to the game room. They share the link with their opponent and once both of them reached that url, the game will start.

The players control the racquets with the arrow keys on the keyboard or with the mouse.

##Technology The backend is done using Node.js and Express. The simulation (collision detection and movement of the ball) is running on the server which sends the state of the game 60 times per second.

The communication between server and client happens through a websocket connection implemented with socket.io. This library is also capable of partitioning connected clients into rooms, which is used to create the multiple-rooms-logic.

The frontend is very simple, it only represents the state of the game on the server and sends information about the racquet movements.

pong's People

Contributors

ferdinandtorggler avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.