Reduce game size in Cocos Creator cocos2d-x

I am developing a game using Cocos Creator for Android and iOS platforms . The game is small in size and has several graphic elements.

I found that the size of the APK and IPA for this game is 11.5 MB . I think that these files (APK or IPA) should contain some unnecessary files. The Assets folder is only 5 MB in size.

I have the following questions:

  • How to reduce game size for iOS and Android in Cocos Creator?

  • Are there any optimization methods to reduce the size of artistic assets (without affecting the quality)?

I would be grateful for any suggestions / thoughts on this topic. Thanks.

+5
source share
2 answers

I have never worked with Cocos Creator, but I have a couple of experiments to develop a commercial game. The size of the game is almost equal to its assets.

Assets include images and sounds. For images:

  • If you don't need an alpha channel, avoid .png .
  • Try this awesome service to reduce your .png files. It saved me 70%!
  • FYI, the sprite sheet nothing to do with the size of the game. This improves memory usage.
  • You can also check this link.

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

+1
source

In cocos creator you can remove unused components. Before creating projects for cocos creators, click "Project", select "Module Configuration". Here you can deselect the components that you do not use in your game. Hope this helps you!

+1
source

Source: https://habr.com/ru/post/1262912/


All Articles