-
Source Code on GitHub:
-
Demo Video on YouTube:
Introduction
The Pong Game Project is a modern take on the classic arcade game, Pong. It’s a simple yet engaging game where two players control paddles and try to hit the ball into the opponent’s goal. This project was an opportunity to delve into game development and explore the capabilities of C++ in creating interactive applications.
Technologies
The game is developed using C++ for the core game logic. C++ was chosen for its efficiency and control over system resources, which are crucial in game development. The game also utilizes the Raylib library, a simple and easy-to-use library designed to enjoy videogames programming. Raylib handles the graphics and user input, allowing for a more streamlined development process.
- C++
- Raylib
Features
The game features include:
-
Player Control: Players can control their paddles using the up and down arrow keys. This allows for real-time interaction and increases the game’s engagement factor.
-
Ball Physics: The ball in the game behaves according to basic physics rules. It bounces off the paddles and the top and bottom of the screen.
-
Boundary Limitations: The paddles cannot move outside the screen. This is achieved by implementing boundary checks for the paddle movement.
-
AI Opponent: The game includes an AI opponent that controls the second paddle. The AI opponent moves based on the ball’s position, making the game challenging and competitive.
More
This project was a great learning experience in game development, and I look forward to creating more games in the future.
Links
- Source Code: https://github.com/Chaitanya-Shahare/pong-game-cpp