PONG
PONG (Based on PONG)
---
This game is Number 1 in the 3-part series I have to explain the purpose and benefits of creating multiple iterations of essays for scholarship applications.
---
PONG was originally developed by Allan Alcorn after Nolan Bushnell, the founder of Atari Inc., tasked Alcorn with bringing the idea of a top-view, tennis-style game to life.
PONG was refined and published commercially by Atari Inc., appearing in arcades and eventually on home-based systems.
While PONG was not the first ever video game created and distributed, it was one of the first that reached unprecedented levels of commercial success and public acclaim.
---
So here is my attempt at trying to recreate the game inside of Unity. I had considerable difficulty creating the AI for Player 1 / The Computer / The Opponent, but I managed to develop something that worked pretty great for my purposes.
I researched that the best way to create an Opponent AI, was to design as perfect of an AI as possible and then throw in some variables to create "flaws".
In my case, a completely perfect AI would be one that matches the Y-axis of the Ball at every frame. This would ensure that the opponent paddle would always bounce the ball off of it since it would, without fail, meet the ball at the same Y-axis.
To make this AI flawed, I actually only introduced one variable - distance. While I had the paddle read the Y-axis of the ball at every frame, I designed a function that would randomize the distance the paddle could travel each frame, making it so that the paddle could be late and miss the ball.
---Attributions---
PongBlipF4.wav by NoiseCollector -- https://freesound.org/s/4359/ -- License: Attribution 3.0
| Status | Released |
| Platforms | HTML5 |
| Author | AcademiaCat |
| Made with | Unity |

Leave a comment
Log in with itch.io to leave a comment.