Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What do you need to know about cocos2d x?


Asked by Boone Cannon on Dec 01, 2021 FAQ



cocos2d-x is a multi-platform framework for building 2d games, interactive books, demos and other graphical applications.
Also Know,
Free software. Another major advantage of Cocos2D-X is that we can use it without having to spend large amounts of money on licences: it’s free. Cocos2D-X works under the MIT licence and is maintained by its community of users.
Thereof, While Cocos2d-x is capable of building games for many platforms, in this tutorial you’ll focus on making an OS X app. Porting this project to other platforms is a trivial (yes, trivial!) matter discussed briefly at the end of this tutorial.
Also,
Cocos2d-X has built-in bindings for the Lua and Javascript languages, making it possible for you to script some -- if not all -- of your game code. You write the lower-level stuff in C++ and the higher-level stuff in your choice of scripting language.
And,
If the node you are updating doesn’t actually need to be updated every frame, you are just wasting CPU power ( and battery life ). If you have a lower priority update you can tell Cocos2d-x this using: The actual value passed in is simply relative to other priorities.