Before looking at Starling data, found India a high man's hungry-hero, worship the sentiment arises spontaneously.
Now just take the material to make a cocos2d-js version. Temporarily running the flash on the phone, there is no time to see the specific reasons.
Running under Chrome, memory control is good, and Cocos2d-js's object pool and particle system recycling are good.
Demo Address: (No packaging compression, COCOS2D-JS has a problem with the compression, and the English website Builder Packaging version of the lack of cc.pool, lazy self-toss compression, directly all copy up, so open slower, please wait patiently)
Http://kenkozheng.github.io/cocos/hungry_hero/index.html
Code Address:
Https://github.com/kenkozheng/cocos2d-js/tree/master/hungry_hero
Used in the game:
1. Parallel background (self-implemented, unofficial version)
2. Object Pool (Cc.pool)
3, particle system (CC. Particlesystem)
4, Bitmap font (CC. Labelbmfont)
5, Batch rendering layer (CC. Spritebatchnode)
Game Introduction:
The Superman goal is to eat as much food as possible, mushrooms can give Superman the ability to absorb, the food is sucked over, coffee can let Superman accelerate, the acceleration of the state of madness can be knocked off the barrier.
Cocos2d-js Mini Game Hungry-hero (Original is Flash starling)