Pong Game Documentation

Overview

This Pong game is a modern take on the classic arcade game, featuring single-player and two-player modes, three levels of AI difficulty, and enhanced ball mechanics. Players control paddles to hit a ball back and forth across the screen, aiming to score points by getting the ball past their opponent's paddle.

Gameplay

Single-player mode

In single-player mode, the player competes against an AI-controlled paddle with three levels of difficulty: easy, medium, and hard. The AI paddle's reaction time and prediction capabilities depend on the selected difficulty level.

Two-player mode

In two-player mode, two human players compete against each other, each controlling a paddle on opposite sides of the screen. The game follows traditional Pong gameplay, with players trying to score points by getting the ball past their opponent's paddle.

Ball mechanics

The game includes several enhanced ball mechanics to make gameplay more dynamic and engaging:

Spin based on paddle movement

When the ball collides with a paddle, it may receive some spin based on the speed of the paddle at the moment of impact. This spin can cause the ball to curve as it moves across the screen, making it harder for the opponent to predict its trajectory and adding a strategic element to the game.

Speed increase based on impact point

The speed of the ball is affected by the point at which it hits the paddle. If the ball strikes the middle of the paddle, it will move faster than if it hits the edges. This mechanic rewards precision and encourages players to aim for the center of the paddle to maximize their chances of scoring points.

Controls

  • Player 1: W (up) and S (down)
  • Player 2: Up arrow (up) and Down arrow (down)

Scoring

A point is scored when the ball goes past the opponent's paddle and reaches the edge of the screen. The first player to reach a predefined number of points wins the game. In single-player mode, the player competes against the AI, while in two-player mode, two human players compete against each other.

StatusReleased
PlatformsHTML5
AuthorKjosev
Made withUnity

Leave a comment

Log in with itch.io to leave a comment.