★ TouchArcade needs your help. Click here to support us on Patreon.

Finally got the game under 20mb! (+ a handy png tool)

08-24-2011, 06:12 AM
#1
Joined: Apr 2011
Posts: 426
Finally got the game under 20mb! (+ a handy png tool)

So I'd temporarily given up on getting our debut game, Honey Tribe, under 20mb. But after Blitter and Mr.Ugly put the thought back in my mind I gave it another go. So thanks for that

Not sure if it will make a difference to downloads but I'll find out soon enough.

We just released the latest version: v1.1.1

On a related note, the guy who made imageOptim has another tool which can add full alpha channel to png8 images: http://pornel.net/imagealpha

Play Yam Yam!
Download some great music for your game projects.
Official Site | Facebook | Twitter

Last edited by Shaz; 08-24-2011 at 09:12 AM.
08-24-2011, 08:19 AM
#2
Joined: Jun 2010
Posts: 378
Quote:
Originally Posted by Shaz View Post
So I'd temporarily given up on getting our debut game, Honey Tribe, under 20mb. But after Blitter and Mr.Ugly put the thought back in my mind I gave it another go. So thanks for that

Not sure if it will make a difference to downloads but I'll find out soon enough.

On a related note, the guy who made imageOptim has another tool which can add full alpha channel to png8 images: http://pornel.net/imagealpha
You use GameSalad right?

That software compresses the images for you when you test/publish. I stopped using imageOptim for GameSalad games because it seemed redundant.

What do you mean by under 20 MB? If you mean the bottom-right indicator in the GameSalad Creator, that's not the final number. The published file you get back from GameSalad has to be zipped... and then it may change size again (either larger or smaller) after Apple puts it on the App Store.

To help reduce the size of my projects, I've been reducing the number of colors in my images — using indexed PNG files. By limiting the PNG to 256 colors (or even less) the file size is dramatically reduced. That won't reduce the RAM usage for a GameSalad app, but I find that it improves loading times and it reduces the file size of the game.

Also, even if it says 15 MB in the GameSalad Creator, having Resolution Independence enabled can dramatically increase the size of the game.

Michael Garofalo - App Developer and author of The Unofficial GameSalad Textbook.

08-24-2011, 08:37 AM
#3
Joined: Apr 2011
Posts: 426
Quote:
Originally Posted by Photics View Post
What do you mean by under 20 MB?
If you click on the link in my signature you'll see the latest version of Honey Tribe on the app store in now under 20mb. That's what I mean.

Play Yam Yam!
Download some great music for your game projects.
Official Site | Facebook | Twitter

Last edited by Shaz; 08-24-2011 at 09:11 AM.
08-24-2011, 11:11 PM
#4
Joined: Dec 2010
Location: ΖΞN
Posts: 304
Nice one Shaz, let us know the download percent difference if anything becomes apparent over time. I think it might be hard to spot, charts seem to mostly fluctuate from what I've seen.

BubbleSand - "the best sand app"
Tetroms
08-25-2011, 05:56 AM
#5
Joined: Jun 2011
Location: Melbourne, Australia
Posts: 286
Just as a matter of interested, how big was the game when you submitted it to Apple?

I published a game that grew from 14mb to 23mb after Apple had their way with it :-(
08-25-2011, 06:37 AM
#6
Joined: Apr 2011
Posts: 426
Quote:
Originally Posted by blitter View Post
Nice one Shaz, let us know the download percent difference if anything becomes apparent over time. I think it might be hard to spot, charts seem to mostly fluctuate from what I've seen.
Cheers, yeah it's hard to know what has an effect and what doesn't as ,like every other dev, I'll be trying various things to increase the downloads.

Quote:
Originally Posted by Luke Kellett View Post
Just as a matter of interested, how big was the game when you submitted it to Apple?

I published a game that grew from 14mb to 23mb after Apple had their way with it :-(
Well the zipped file I uploaded to Apple was 19.2MB and the file on the app store is 19.3MB

I've read others saying as much as 400kb can be added, but an extra 9MB sounds a bit strange... Maybe they added in a secret mini game for you

Play Yam Yam!
Download some great music for your game projects.
Official Site | Facebook | Twitter
08-25-2011, 09:02 AM
#7
Joined: Jun 2010
Posts: 378
Quote:
Originally Posted by Shaz View Post
If you click on the link in my signature you'll see the latest version of Honey Tribe on the app store in now under 20mb. That's what I mean.
I think that you might have done something else to reduce the size of your game. GameSalad compresses PNG images for you. While ImageOptim is a handy application, it's not really useful for a GameSalad workflow. To be sure, I tested it...

Click image for larger version

Name:	compression-comparison.png
Views:	4
Size:	69.3 KB
ID:	36753

I took BOT #1 and tested things out. This comic application is primarily large images. The 16 large images in this app are 762x1024. I republished it to get the original size. Then, I created a second build of the game, where I ran it through ImageOptim first. It was a nice reduction in size... about 12%. Yet, that was not reflected by the compressed build. The size difference is clearly not 12% smaller. It's almost the same size.

The space savings was miniscule... about 43K.

Michael Garofalo - App Developer and author of The Unofficial GameSalad Textbook.
08-25-2011, 12:27 PM
#8
Joined: Apr 2011
Posts: 426
Quote:
Originally Posted by Photics View Post
I think that you might have done something else to reduce the size of your game.
Indeed, there were many factors involved in reducing the size of the game.

First I traveled to each corner of the world to do battle with the 4 arch mages of app size wisdom. It has long been known that their secrets will only be revealed to mighty champions who dare to brave... the MAZES OF SCARY DEATH! Hideous beasts they can summon, nefarious traps they can lay.

But I felt no fear.

Climbing atop Lookout Hill I bellowed to the first mage "I seek your app-size-reduction knowledge wizard! I demand you tell me. I DEMAND IT!"

And with my trusty super-magic-pocket-computer in hand I rushed forward to meet my fate.

And lo.

After the mage's castle had crumbled and his beasts were slain I claimed my prize... The oracle of bits, enslaved by the mage and now freed revealed to me her secrets!


And as is tradition, I can only tell of these secrets... when bested in battle!

Play Yam Yam!
Download some great music for your game projects.
Official Site | Facebook | Twitter
08-25-2011, 02:01 PM
#9
Joined: Dec 2009
Location: Berlin, Germany
Posts: 1,674
@photics

you answered your question yourself.. you use mainly big images.. which if they are a comic are usualy not transparent.. and in this case shaz stated that the tools gives you an alpha channel on an png8.. since the game (if you check it out) uses alot of sprites with alpha i can fully understand that he shaved alot off the app that way..


@shaz: let us know how the sales are coming.. cheers
08-25-2011, 03:58 PM
#10
Joined: Dec 2010
Location: ΖΞN
Posts: 304
Cool is that like a detachable screen! :-D

BubbleSand - "the best sand app"
Tetroms