2. Hello, Space Viking

In the previous chapter you installed Cocos2D on your system, including the templates that are used by Xcode. You also learned about some of the companion tools you will be using in later chapters. Now it is time to start your journey creating Space Viking by putting Ole the Viking onscreen and moving him around. In this chapter you will deal only with the iPad version of Space Viking; later in the book you will cover in detail techniques and practices to adapt and scale a game from iPad down to the iPhone.

You will start by creating the basic Space Viking game project, which you will build upon throughout the rest of the book. You will begin with a basic Cocos2D template and add two sprites, one for the background and ...

Get Learning Cocos2D: A Hands-On Guide to Building iOS Games with Cocos2D, Box2D, and Chipmunk now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.