python - cocos2d-x到底怎么入门?
怪我咯
怪我咯 2017-04-17 17:24:41
0
4
429

看了网上的各种视频和文字教程,发现官网上下载的cocos跟他们说的都不一样!
根本就没有cocos code IDE,只有cocos和cocos studio;
折腾了几个小时也不知道该在哪里写代码;
选择用VS打开说不支持(VS2015);
用Android Studio打开也报错;
整个目录结构到现在依旧搞不清楚,网上有的教程跟跟我手上的cocos完全不一样;

请问哪里有较新的(cocos2d-x-3.10)教程可供参考?

我想知道在哪里编写代码,工程的目录结构是怎么样的...

附图:
【cocos】

【cocos studio】

【项目目录】

【用AS打开】

【用VS打开】

【cocos2d-x目录】

新建的项目倒是能正常在浏览器运行。

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(4)
大家讲道理

https://www.zhihu.com/question/35899526
Look at what Wang Zhe (the leader of cocos2d-x) said. There is currently no easy-to-use IDE. The general approach is to use Visual Studio and Lua for C++. /js uses SublimeText.
The official tutorial is also a backward version. I recommend starting from cocos2d-x c++ to facilitate debugging. When you are familiar with the main control classes, consider using lua.
If you want to learn, just look at the engine Comes with examples, look at them bit by bit, and change them bit by bit to see the effect.
You can make a small game independently and find a job immediately. Don’t mess around by yourself.

大家讲道理

cocos studio is the IDE. You will understand if you look up history. Many tutorials on the Internet are very old ~ that’s why.

大家讲道理

Cocos Creator is out...Although there are still many pitfalls...But at least you can get started...

刘奇

First of all, Cocos Code IDE has officially stopped operating updates, so there is no official download method. Therefore, you need to download the corresponding code editing tool separately. If you choose C++ as the project language, you can use VS to edit the code.

For the second question, you must first clarify whether you want to write logic through Lua, C++, or JS, and then determine whether you want to create a new corresponding project. From the project directory structure in your screenshot, we know that you chose the Lua language. I guess you clicked OK without looking carefully, so the Lua language project was created by default. The logic code files of Lua language are in the src directory in the project directory. Lua's code editing tools include LuaStudio, Sublime Text, etc. The subject can choose according to their own preferences.

If you want to use VS to open a C++ source code project, you need to find the file with the .sln suffix and double-click it to open it for debugging. You can search for the .sln file in the project directory. According to your project directory, it is in the frameworksruntime-srcproj.win32 directory.
In addition, although these tutorials on the official website are old, they are still very suitable for getting started. Official website tutorial URL

If it is C++ language, choose the tutorial option of Cocos2d-x. If it is js language, choose the tutorial option of Cocos2d-JS.
If it is lua language, choose the tutorial option of Quick-Cocos2d-x. As shown below:

Since the questioner did not clarify whether the logic should be written in Lua language, I will not post the link to the specific tutorial. The titles of introductory tutorials will all have words like "getting started" or "newbie", just look for them.
Finally, if the subject’s programming foundation is not very solid, it is recommended to learn u3d first. Because the learning cost of cocos2dx is more than one order of magnitude higher than that of u3d. Or as other respondents said, use Cocos Creator.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!