Book Image

Cocos2d Game Development Essentials

Book Image

Cocos2d Game Development Essentials

Overview of this book

Table of Contents (13 chapters)

Adding sprites to SpriteBuilder


Just using basic shapes does not create the best looking game. In order to make your game better, you will now learn how to add real assets to your game.

First, you will need to acquire some assets. You can create your own if you like or download some premade assets from https://s3.amazonaws.com/mgwu-misc/Spritebuilder+Tutorial/PeevedPenguinsAssets.zip.

Tip

If you are looking for more game art, you can check out OpenGameArt.org for some great assets.

Open up your project from the last chapter in SpriteBuilder. To import assets into SpriteBuilder, you need to drag them into the resources pane on the left. Drag in the asset files now. You should now see them listed in the resources pane.

You may notice that you do not have different assets for retina and non-retina. This is because SpriteBuilder automatically converts them for you. You just have to let it know what it is starting with. The default starting scale is 4x, but the images you have imported are at the...