5
Collisions, Sound, and End Conditions: Making the Game Playable
This is the final phase of the first project. By the end of this chapter, you will have your first completed game. Once you have Timber!!! up and running, be sure to read the last section of this chapter, as it will suggest ways to make the game better.
We will cover the following topics in this chapter:
- Preparing the player (and other sprites)
- Drawing the player and other sprites
- Handling the player’s input
- Handling death
- Simple sound effects
- Improving the game and code
In this chapter, we will reuse the C++ concepts that we have already learned, but we will see the SFML (Simple and Fast Multimedia Library) sound features for the first time.
Preparing the player (and other ...
Get Beginning C++ Game Programming - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.