Bad practice: When starting to spell, some are hidden and some are displayed, which is equivalent to There is no unified treatment. If there are too many rules, the interface logic will be confused
Category: Cocos2dx
Cocos2d-x is an open source mobile 2D game framework, released under the MIT license. This is a version of the C++ Cocos2d-iPhone project. The focus of the development of Cocos2d-X is the framework provided by Cocos2d-x around the Cocos2d cross-platform. Mobile games can be written in C++ or Lua, and the API is fully compatible with Cocos2d-iPhone. The Cocos2d-x project can be easily built and run on iOS, Android, Blackberry and other operating systems. Cocos2d-x also supports desktop operating systems such as Windows, Mac and Linux. Therefore, the source code written by developers can be easily edited and debugged in the desktop operating system.
Cocos2DX-JS version important class
cc.eventManager
cc.Class
cc.loader
cc.game
jsb.EventListenerAssetsManager
cc.eventManager
cc.Class
cc.loader
cc.game
jsb.EventListenerAssetsManager
COCOS3D camera understanding
Pay attention to the parameters of lookAt
Therefore: in parkour games, the camera can be One perspective
Pay attention to the parameters of lookAt
Therefore: parkour games, the camera is mounted to On the human body, you can get the first perspective of a person
COS commonly used public function lua code
Public resource loading, cache retain; prevent automatic destruction
2. The number is incremented by rolling; after winning the prize, the total gold coins will jump Add
3. Show the number of gold coins rounded up
4.
5.
p> 6. Load the csv configuration file
(Transfer) Let Quick-Cocos2D-X support encrypted PLIST files
First part: quick-cocos2d-x image resource encryption
In the previous part, we have implemented the encryption of image resources, but have not yet implemented plist Encryption of files. Alth
[COCOS2DX] Color Mixed Blendfunc
Concept < span style="color:#FF0000;">“Mixed” refers to the superposition of two colors. When the new picture is about to be rendered and drawn on the screen, the red, green, blue and transparency
COCOS2DX – using shader
Shader architecture of Cocos2dx Shader of Cocos2dx is composed of GLProgram, GLProgramState, GLProgramCache, and GLProgramStateCache.
GLProgram is Cocos2dx’s encapsulation of Program, and general
CONVETTOWORLDSPACE, CONVETTONODESPACE and other coordinate transformation functions
First of all, we must understand what the anchor is. Referring to the “cocos2d-x authoritative guide”, some of the statements have been changed to words that I understand better.
The appeara
Cocos.js inherited to achieve source code
CCClass.js
(function () {
var fnTest = /_super/;
var config = cc.game.config;
var releaseMode = config[cc.game.CONFIG_KEY.classReleaseMode];
if(releaseMode) {
console.log(“release Mode
(Transfer) Quick-Cocos2D-X picture resource encryption (continued)
Summary: Supplement to the resource encryption method implemented on quick-cocos2d-x
First part:
Through the modification of the previous article, we have been able to use encrypted ima