Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reduce game size in Cocos Creator cocos2d-x

Tags:

I am developing a game using Cocos Creator for Android and iOS platforms. The game is small in scale and has few graphics elements.

I found that the APK and IPA file size for this game is 11.5 MB. I think these files (APK or IPA) must be containing some unnecessary files. The Asset folder's size is just 5 MB.

I have following questions:

  1. How to reduce the game size for iOS and Android platform in Cocos Creator?

  2. Are there any optimization techniques for reducing size of art assets (without affecting quality)?

I would appreciate any suggestions/thoughts on this topic. Thank you.

like image 586
Nimesh Chandramaniya Avatar asked Jan 17 '17 09:01

Nimesh Chandramaniya


1 Answers

I've never worked with Cocos Creator, but having a couple of commercial game development experiment, The size of game is almost the size of its assets.

Assets includes images and sounds. For images:

  1. If you don't need alpha channel, avoid .png.
  2. Try this awesome service to reduce your .png files. It saved me 70% !
  3. FYI, sprite sheet has nothing with game size. It improve the memory usage.
  4. You can also check this link.

I also recommend this if you try to improve your memory usage as well.

like image 78
Emadpres Avatar answered Sep 23 '22 09:09

Emadpres