Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Cocos2d Game Development Essentials

You're reading from   Cocos2d Game Development Essentials For new users - a quickstart guide to bringing your mobile game ideas to life with Cocos2D

Arrow left icon
Product type Paperback
Published in Jan 2015
Publisher
ISBN-13 9781784390327
Length 136 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ben Trengrove Ben Trengrove
Author Profile Icon Ben Trengrove
Ben Trengrove
Arrow right icon
View More author details
Toc

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image