Abstract
In this chapter, you will make the Painter game more interesting by giving the player a limited number of lives. If players miss too many paint cans, the game is over. 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 will learn a few programming constructs for repeating a group of instructions several times.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2015 Arjan Egges
About this chapter
Cite this chapter
Egges, A. (2015). Limited Lives. In: Swift Game Programming for Absolute Beginners. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0650-8_9
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0650-8_9
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0651-5
Online ISBN: 978-1-4842-0650-8
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books