Game from scratch with C++ and SFML (7)
The AI
This article is part of the series “Game from scratch with C++ and SFML”.
1) Introduction
2) Our first window & game loop
3) The state manager
4) Adding our player
5) Cleaning up with an object manager
6) Add the ball
7) The AI !
8) Finishing up the game
Playing alone can be fun, but it’s better with an opponent right? In this article, we will add a simple AI to play against us.