A downloadable game for Windows

"Pong Game" is a classic game where players face off in a fast-paced battle. Use simple controls to move your paddle and hit the ball past your opponent. With retro-style graphics and addictive gameplay, it's perfect for fun with friends. Developed using Unity.

Controls:

Player1 Movement : W,S.

Player2 Movement: Up Arrow, Down Arrow.

Concepts Used:

  • Unity Engine Components: Unity engine components such as Transform and Rigidbody2D.
  • Input Handling: Input.GetKey() to determine whether the player wants to move up or down.
  • Speed Control: The playermovespeed variable determines how fast the player character moves.
  • Ball Movement: The Addforceball() method applies a random force to the ball when called, which simulates the ball's initial movement.
  • Resetting Ball Position: When the ball enters a goal, its position is reset to the center of the playing field (Vector3.zero).
  • Random Direction for Force: The force applied to the ball is randomized in both the x and y directions to give the impression of randomness in its movement.
  • Time.deltaTime: Time.deltaTime is used to ensure smooth movement regardless of frame rate.

Download

Download
PONG GAME.zip 31 MB

Leave a comment

Log in with itch.io to leave a comment.