Tennis Game

OVERVIEW

I made Tennis Game by using C++ and SDL.

YEAR 2022

Production time: 6 hours
Supported models: PC (Windows)
Description
I taught myself the C++ language from a complete beginner. One of the games I created while learning was this tennis game where you use a paddle to keep the ball out of the left corner. At first I did not understand how to use classes and pointers, but through creating this game I was able to learn how to handle them. One of the difficulties in creating the game was the hit detection; I used If statements, but it was difficult to handle the various ways the ball hit the wall and the paddle without exceptions.