Abstract
Core Graphics is a powerful 2D drawing library that is responsible for rendering large portions of iOS and OS X. In this chapter, we see how to use this library to draw actors in our game. The goal is to have actors that are drawn dynamically based on game state. To illustrate this, we’ll create two example actors drawn with Core Graphics: a health bar that shows the amount of health remaining for an actor, and a bullet that is drawn in a particular color depending on how powerful it is. These two examples will illustrate how to use Core Graphics within the context of the simple game engine we have started.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2012 Lucas Jordan
About this chapter
Cite this chapter
Jordan, L. (2012). Build Your Game: Vector Actors and Particles. In: Beginning iOS6 Games Development. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4423-3_7
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4423-3_7
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4422-6
Online ISBN: 978-1-4302-4423-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)