Beginning C++ Game Programming
上QQ阅读APP看书,第一时间看更新

Chapter 3: C++ Strings and SFML Time – Player Input and HUD

In this chapter, we will continue with the Timber!! game. We will spend around half of this chapter learning how to manipulate text and display it on the screen, and the other half looking at timing and how a visual time-bar can inform the player about the remaining time and create a sense of urgency in the game.

We will cover the following topics:

  • Pausing and restarting the game
  • C++ Strings
  • SFML text and SFML font classes
  • Adding a HUD to Timber!!!
  • Adding a time-bar to Timber!!!