Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Cocos2d Game Development Essentials
  • Table Of Contents Toc
Cocos2d Game Development Essentials

Cocos2d Game Development Essentials - Second Edition

By : Ben Trengrove
4.5 (2)
close
close
Cocos2d Game Development Essentials

Cocos2d Game Development Essentials

4.5 (2)
By: Ben Trengrove

Overview of this book

If you are a game developer with experience in Objective-C and are interested in creating games for iOS or Android, this is the book for you. It will help you to quickly get started with Cocos2D and guide you through the process of creating a game, giving you the essential skills and knowledge you need to do so.
Table of Contents (8 chapters)
close
close

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

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Cocos2d Game Development Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon