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

Creating a word Scramble game where you can drag and drop the word and create a complete word. (drag and drop word Scramble game).

Creating a word game using  phaser game engine which is a javascript based gaming engine  where u can drag and drop world like Word Scramble Game and complete a given word. your index.html file look like below < html > < head > < script src = "src/phaser.min.js" ></ script > < script src = "src/wordGame.js" ></ script > < script src = "src/main.js" ></ script > </ head > < body > </ body > </ html > 1.    <script src="src/phaser.min.js"></script> required to run the  phaser game engine. 2. rest of the two files deals with game logics      <script src="src/wordGame.js"></script>       <script src="src/main.js"></script> you can download whole project from https://github.com/manishchauhan/wordgame/tree/master just copy and paste the project in your local server and run ...

starting with three.js and react with a very simple example

 1. three.js is undoubtedly the best library to create interactive content for the web in 3d. link https://threejs.org/ a working sample of three with react can be found below https://stackblitz.com/edit/react-7n5qf9?file=src%2FApp.js why choose threejs 1. lightweight  2.fast 3.big community  https://discourse.threejs.org/ 4. even you can use unity or unreal to publish html5 content but i don't think that would be acceptable in many cases. 5. open-source project. i created a running sample with React  https://stackblitz.com/edit/react-7n5qf9?file=src%2FApp.js

A simple binary search tree with generic approach tree can store any type of data. (DFS and BFS)

 1. a binary search tree in c++ using a generic approach with both BFS and DFS approach    working tree    https://www.onlinegdb.com/edit/HkuQLdA-w code=> some properties of binary search tree-> 1. binary search tree is not always a balanced tree.  2. Inorder, traversing gives you sorted data.  3.  best is o(log n) and worst is O(n).  4. left node data is always less than root data and right node data always be greater than root data.  5. red-black tree STL map is a balanced binary search tree. *******************************************************************************/ #include <stdio.h> #include<iostream> #include<queue> using namespace std; template < typename T > class Node {   //can store any type of data private:   //genric data or store any type of data   T data;   //reference of left pointer   Node *left = nullptr;   //reference of right pointer   Node *rig...