This project is a recreation of the classic arcade game known as Pong, one of the first ever computer games released in 1972! This solo project was developed in Unity using C# as part of my minigames series where I utilize various resources to remake simple games in order to further my learning as well as to have fun!
Pong consists of two paddles on either sides of the screen & a ball. The goal is to deflect the ball from going into the goal on your side of the board. Get the ball into your opponents goal to score! I have setup a single player mode in which you have control over one paddle against the computer, and a two player mode where you have control over both paddles.
In order to play this version of Pong, follow the link to a in-browser WebGL build (No download required!).
A brief description of all of the classes is as follows:
- The
Ball
class handles the resetting of the ball position as well as giving it an initial velocity. - The
BloomColorChange
class handles the glow/bloom post processing effect in the scene that cycles through a gradient of colors. - The
BouncySurface
class increases the speed of the ball whenever it collides with a paddle or wall. - The
ComputerPaddle
class inherits from thePaddle
class, and handles the control of the computer paddle based on the position & direction of the ball. - The
GameManager
class is a singleton class that handles scoring, resetting, and updating UI. - The
MenuManager
class is a signleton class that handles scene loading. - The
Paddle
class is a base class that all paddle classes inherit from, it contains a reference to the rigidbody & paddle speed. - The
PlayerPaddle
class inherits from thePaddle
class, and handles input & movement of the player paddle. - The
ScoringZone
class handles increasing the score whenever the ball collides. - The
TwoPlayerPaddle
class inherits from thePaddle
class, and is used in two player mode for each player paddle to take different inputs.
- Unity
- Visual Studio
- GitHub
- GitHub Desktop
- Credit goes to Zigurous for the helpful base game tutorial!
- I made use of Unity Post Processing for the glowing color effect!
- Pong SFX
This game, like many of the others I have worked on, is completely free and made for fun and learning! If you would like to support what I do, you can donate at my metamask wallet address: 0x32d04487a141277Bb100F4b6AdAfbFED38810F40
. Thank you very much!