Skip to main content

why cocos2dx is best framework for 2d cross platform native game development.

cocos2dx 



link:-http://www.cocos2d-x.org/



i start working on cocos2dx few year's back and found it's  a complete solution for 2d game development. best thing about cocos2dx it's open source and very powerful gaming engine.



my few point's about cocos2dx



1. its  a open source so we can use it for any type of gaming without worrying about copyright issues even you can modify engine at your end which i don't think you required 80% of time.



2. cocos2dx runs on every platform desktop mac android ios and even on play station i never tried on  play station but some people successfully implemented it on playstation. 



3.cocos2d-x using opengl es 2.0 so you don't need to worry about rendering as lots of people know  opengl is a cross-platform application programming interface for rendering 2D and 3D vector graphics and it's not easy to write your own graphics rendering pipeline so why we need to waste our time to write a 2d game engine if cocos2dx is their. 



4. cocos2dx support all primary gaming language for example c++, lua and js and even typescript.



5. cocos2dx contain all type of gaming solution for example ->



a. sprite concept sprite can hold other sprite and behave like container for example my game start menu contain a base sprite which contain other sprite such as game start button,setting button and many more.



b.out of box support for box2d and chipmunk by default cocos2dx support chipmunk  as a physics engine but your easily implement box2d depends on your requirement.



c.cocos2dx also support spritesheet which is core concepts of gaming. Spritesheet is a big sprite which contain many small sprite and draw's only once in memory using sprite batching which is really useful while creating games for mobile (android and ios).



4. cocos2dx fully support all type of tween for animation which helps us to create time based animation grouping and sequence of multiple animation can be possible.



5. cocos2d x usesresize factor to looks thing better so you don't need to worry about different device's.  



6. cocos2dx uses batching mean it's tried to make minimum opengl call's until you organize you spritesheet in a better manner. 


7.full support of bone animation tool such as spine.


8. automatic memory management for cocos2dx yes you heard right cocos2dx is based on c++ but strongly follow ARC pattern for memory management.


9.scenes creation you can add multiple scenes across the game and move data between scenes.


10. easy preloading of all type of data.


11.https and socket call support

12. fully json support using rapid json.


13.custom shader can be added easily


and many more please check 


link:-http://www.cocos2d-x.org/









    

Comments

Popular posts from this blog

Better Memory management with PixiJS or How to manage cpu and cpu memory in PixiJS.

PixiJS is my favorite framework when i am looking for a web games specially for mobile or desktop  PixiJS is fast blazing fast and you can get a decent FPS even on older device.   so here is my optimization techniques for PixiJs 1. manage your sprites in a better way use spritesheet to reduce the draw calls create big sprite sheet which contain multiple sprites can be draw in gpu with a single draw call. use TexturePacker  https://www.codeandweb.com/texturepacker  best tool when its comes to spritesheet 2. for floating point calculation round off calculation for example let  speed = 0.75 ; let  position = 100 ; console . log ( Math . round ( speed * position )) 3. don't create very big canvas when u need a big canvas size game just try to create a small canvas and translate it. 4. its very important one managing TextureCache in memory you can get all TextureCache list by using  Object.entries(PIXI.utils.TextureCache); so even you use ap...

adding particles Effect in pixijs using https://pixijs.io/pixi-particles-editor/

adding particle in pixijs is very easy using the below tool more information can be found below https://github.com/pixijs/pixi-particles https://pixijs.io/pixi-particles-editor/ required packages  /// < reference path = "node_modules/pixi-particles/ambient.d.ts" /> import 'pixi-particles' code of particle delcare a     global variable   private emitter ?: Emitter ; const img = PIXI . Texture . from ( "./assets/images/particle.png" ); this . emitter = new Emitter ( this ,[ img ],{ "alpha" : { "start" : 0.62 , "end" : 0.39 }, "scale" : { "start" : 0.1 , "end" : 0.9 , "minimumScaleMultiplier" : 1.25 }, "color" : { "start" : "#ffff8f" , "end" : ...