as we all know, through Cocos2d Development of the hand package is generally large, moving hundreds of M of the installation package, while the bulk of the package will lead to the increase in the cost of hand-travel promotion, will also affect the user conversion rate. In addition to other factors, users in the selection of downloads, will focus on the game package size, the game package volume is too large, the download time is long, will also cause users to cancel the download, but also take into account the problem of traffic.
650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M01/7F/47/wKiom1cYh_DyYvSJAADbQfrgXTo143.jpg "title=" 12333. JPG "alt=" wkiom1cyh_dyyvsjaadbqfrgxto143.jpg "/>
Some common simple methods:
1. replace jpg, use psd, reduce duplication of resources;
2. elimination of unnecessary resources;
3. Check the log record when packing , thus judging the file types that need to be reduced;
4. optimize, compress picture, reduce picture size;
5. optimize, Compress grid and animation, reduce file size;
6. Remove system.dll and System.Xml.dll, and try not to rely on them, or replace them with other components.
The method described above is the compression of images and the reduction of resources, but these processing will greatly affect the quality of the game and the smoothness of the run time, affecting the user's experience.
In response to this dilemma, a number of service providers have introduced subcontracting technology, and the traditional subcontracting is to cut resources, segmented download, before entering the game to carry out two downloads; When dealing with the game package body slimming, often adopt delete code, streamline resources even for resource trade-offs; When the resource is loaded, the player must interrupt the game, And wait for a slow resource load.
In addition by the service provider love encryption of the latest love compression services can be a good way to improve this dilemma, love compression is mainly the use of resource splitting, in ensuring the smooth game experience, the background of automatic loading of resources, lossless compression, in full to ensure that the game quality, compatibility, stability is not affected by the situation, The real realization of the client's effective slimming; Intelligent Screening network environment, through the cloud server acceleration, to achieve high-speed resource background silent loading,WiFi situation when the resources loaded in place. Thus the real realization reduces the volume of the installation package and increases the conversion rate.
Discussion: How to reduce the size of the game package developed by cocos2d