Swipe to navigate through the chapters of this book
In this chapter, you make the Painter game more interesting by giving the player a limited number of lives. If players miss too many paint cans, they die. The chapter discusses how to deal with that and how to display the current number of lives to the player. In order to do the latter, you learn about a few programming constructs for repeating a group of instructions several times.
Please log in to get access to this content
To get access to this content you need the following product:
- Limited Lives
- Sequence number
- Chapter number
- Chapter 10