As a game mechanic, countdown clocks are a popular feature in many games:
![](https://static.packt-cdn.com/products/9781839217616/graphics/assets/b146ce11-4af2-4677-916b-d5f4e1bc30cb.png)
Figure 1.8 – Countdown clock
This recipe, which will adapt the digital clock shown in the previous recipe, will show you how to display a digital countdown clock that will count down from a predetermined time to zero in Figure 1.8.