Skip to content

potapov-dm/pong-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pong Online Game

This is an online multiplayer version of the classic Pong game. Up to 4 players can join and compete against each other.

Features

Homepage: The homepage displays the game board with an ongoing match or offers the option to sign in with a chosen username. If the game hasn't started yet, it provides information about the number of currently logged-in players.

Game Start: The first player who signs in has the option to start the game. If any player doesn't want to wait for the game to start, they can leave the room. If the first player leaves, the game start privilege passes to the next logged-in player. The game can also start automatically when the fourth player joins.

Game Start Image

Adaptive Game Board: When the game starts, the game board adapts dynamically based on the number of players (see images below).

2 players 3 players the last one is playing

Gameplay: The objective is to move your paddle, represented by a moving rectangle, to prevent the ball from going past your side. The ball's speed increases as the game progresses.

Player Elimination: If a player fails to hit the ball 3 times, they are eliminated, and the side they were defending gets replaced with a solid line. The ball will bounce off this line.

Player Information: Each player can see how many times the ball has passed them.

Game End: The game ends when the last player fails to hit the ball 3 times.

Statistics: Keep track of and display the number of successful ball bounces (regardless of whether the player bounced it off an opponent or the wall).

Technologies Used

HTML, CSS, JavaScript for the frontend PHP for server-side logic WebSocket for real-time communication

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published