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

Chapter 3. C++ Strings, SFML Time, Player Input, and HUD

In this chapter we will spend around half the time 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 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!!!