Recently I want to learn cocos2d game development, and I want to use the lua language. I don’t know what the relationship is between cocos-2d, cocos-creator, and cocos2d lua. I downloaded cocos-creator and looked at it. It seems that the projects created are only js. , there is no cpp, and there is no lua. Isn’t it said that these three languages can be used? What should I use to develop cocos2d-x games using lua? Can I use lua to develop after cocos2d-x is downloaded from the official website?
Also, I want to download it, but I can’t seem to download it. Is it because I opened it wrong or is such a big game framework too lazy to take care of this?
Can’t download?
How should I study? I feel like I am completely confused by the version and these tool frameworks!
高洛峰2017-06-13 09:24:55
Although I have never learned Unity, I still recommend that you learn Unity.
https://unity3d.com/cn
If you still really want to learn Cocos, continue reading below:
The earliest version of cocos is cocos2d-python, and then coco2d-iphone.
Chinese touch has carried it forward and rewritten it in C++, which is what you know now as cocos2d-x.
cocos2d-x has two scripts, lua/js. Because lua has better performance, everyone uses lua, and few people use js.
Making games requires a UI editor and a code editor. The earliest UI editor should be CocosBuilder used on Mac. It is from the cocosd-iphone era. I have not used this software. Later, Touch Control made CocosStudio. This software is no longer updated and is not recommended for you to use. Touch also released a code editor, Cocos Code IDE, which is no longer updated and is not recommended for use. In the end, Touch Control overturned its previous attempts and launched CocosCreator, which has a good reputation in the industry, including UI editing, animation editing, code editing and other functions, because this software is based on Electron and is made with javascript, and javascript is used to create game scripts. More friendly, so earlier versions only provide javascript version. It is said that Touch Control is developing C++ and Lua versions, but I don’t know when they will be launched.
cocos2d-x is a game engine, CocosCreator is a game production tool, they are different.
If you choose cocos2d-x/lua, you can choose Sublime, Atom, or VSCode as a code editor. There is no easy-to-use UI editor. I also wrote the UI directly in code, which was more time-consuming.
I am no longer engaged in game development. The above is written casually without checking the data. You can judge the authenticity by yourself.