In this chapter, we will start with the basics of how a game is made and what basic graphical components the game requires. Since this book is going to be covering graphics with C++, we will mostly look at what is graphically required from the graphics engine in a game. We will also cover the sound system so that we can make the game more interesting.
To create a basic graphics engine, we will be using the Simple and Fast Multimedia Library (SFML) since this includes most of the functionality that is needed to get a game up and running. The reason for choosing SFML is that it is very basic and easy to understand, unlike other engines and frameworks.
In this chapter, we will create a window for our game and add animations to it. We will also learn how to create and control our player's movements.
The following topics are covered in this chapter:
- An overview...