Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering iOS Game Development

You're reading from   Mastering iOS Game Development Mastering iOS Game Development

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher Packt
ISBN-13 9781783554355
Length 228 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Peter Ahlgren Peter Ahlgren
Author Profile Icon Peter Ahlgren
Peter Ahlgren
Miguel DeQuadros Miguel DeQuadros
Author Profile Icon Miguel DeQuadros
Miguel DeQuadros
Arrow right icon
View More author details
Toc

Creating optimized assets

Let's start with creating optimized sprites for the best performance. How will this affect performance? Think of a game as a video, and your device as the DVD player, or even your TV. The game plays frame by frame and your device displays each frame. However, it has to render each frame. This happens so fast you will never notice it, but now imagine your device has to render large images (let's think dialup internet loading a huge photo). It can take longer and because the device has to work harder, the battery will drain quicker.

This is only one reason that can slow performance; we will discuss other reasons further on.

In the following figure, I've drawn a character design from my last book, and I drew him in Photoshop:

Creating optimized assets

For your information, his name is Kevin. It doesn't look like much does it? Here are the details of the drawing:

  • Image size: 52px x 52px
  • Color space: RGB
  • Compression: None at the moment
  • File type: Unsaved

I went ahead and saved 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 £16.99/month. Cancel anytime