Book Image

Learning iPhone Game Development with Cocos2D 3.0

By : Kirill Muzykov
Book Image

Learning iPhone Game Development with Cocos2D 3.0

By: Kirill Muzykov

Overview of this book

Table of Contents (19 chapters)
Learning iPhone Game Development with Cocos2D 3.0
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – displaying the world


Making a video game implies drawing on the screen. Everybody knows that! So, let's go ahead and finally draw something on the screen. We're not going to step aside from the tradition of saying hello to the world, but we're going to make it more visual.

In this part, we will display an image of the earth, and in the next part, we will welcome it using some text. Refer to the following steps:

  1. First of all, we'll need an actual image to display on the screen. It is not some kind of a special image; we could use any, but I've prepared an earth image that works best for this sample. To display images in the game, we should first add them to the project so that they are packed and distributed with the game or application.

    Note

    If you haven't downloaded the supporting files for the book, it is time to do so. Visit http://www.packtpub.com/support/, select the title of this book from the drop-down list, and then follow the download instructions.

    Go ahead and open...