Cocos 相关名词较多,笔者在刚接触时感到比较疑惑,故在了解之后整理成本文。
本文涉及到 cocos, Cocos2d-x, Cocos2d-js, Cocos Creator, Cocos Studio.
目前(2019-8-14)官网产品页只写了两类:
但是从这个页面http://www.cocos2d-x.org/download/cocos进能看到其实是三种:
还是比较让人疑惑的,辨析如下。
Cocos Studio 即以前的 CocoStudio,功能上进一步增强;
CocosCreator 则是一个立足于跨平台 javascript 手游开发的全新平台。
使用js开发的同学可能还记得CocosIDE。官方已经明确声明,不再支持CocosIDE,而全力转向CocosCreator发展。
https://yq.aliyun.com/articles/416115
Cocos Studio 就在 Cocos里面
cocos 包含 cocos2d-x 引擎,开发环境,以及项目管理工具。
在页面 http://www.cocos2d-x.org/download/cocos 可以下载到 3.10 (2019-8-13 19:12:3 访问),http://cocos2d-x.org/filedown/CocosForWin-v3.10.exe
安装包名称是 CocosForWin-v3.10.exe
cocos 中的开发环境就是 Cocos Studio
Cocos is a free and professional game-development toolkit, that enables developers to quickly create game content and remove the tedious work by simplifying it with straightforward GUI editors.
Cocos includes: the Cocos2d-x game engine, a game development environment and project management tool. With this suite, developers can focus on their roles and enjoy a better streamlined workflow. This saves game studios time and money by allowing them to collaborate with ease, and focus on what they do best to achieve better quality and faster turnaround time.
http://www.cocos2d-x.org/download/cocos
Cocos2d-x 是一个 C++ 的游戏引擎。也是 cocos 里面所包含的引擎。
Cocos2d-x is an open-source game framework written in C++, with a thin platform dependent layer. It is widely used to build games, apps and other cross platform GUI based interactive programs. There are also JavaScript and Lua bindings included!
Brand New Graphic Renderer: The Cocos2d-x renderer is optimized for 2D graphics with OpenGL. It supports skeletal animation, sprite sheet animation, coordinate systems, effects, multi-resolution devices, textures, transitions, tile maps, and particles. It adopts a RenderQueue design.
http://www.cocos2d-x.org/products#cocos2d-x
现在这个链接直接链到了 Cocos2d-x 的页面。
http://www.cocos2d-x.org/products#cocos2d-js
Cocos Creator 包含游戏引擎,资源管理工具,场景编辑工具,游戏预览、调试和发布工具。这一套是全 Javascript 的。
所以,Cocos Creator 是一个完整的游戏开发解决方案。而其中的引擎是 cocos2d-x 引擎的 JavaScript 实现。
Cocos Creator is a complete package of game development tools and workflow, including a game engine (based on Cocos2d-x), resource management, scene editing, game preview, debug and publish one project to multiple platforms.
For the first time we introduced entity-component structure and data-driven workflow to the Cocos2d-x family. With JavaScript, you can scripting your component in no time. The editor and engine extension is also made with JavaScript so you can make games and refine your tool in a single programming language.
Cocos Creator provides an innovative, easy to use toolset such as the UI system and Animation editor. The toolset will be expanding continuously and quickly, thanks to the open editor extension system.
http://www.cocos2d-x.org/products#creator
Cocos Studio 即以前的 CocoStudio,功能上进一步增强;
Cocos studio 是 cocos 这个安装包里面的,利用的是 cocos2d-x 引擎。
现在网上的大多数教程都在说 cocos creator 了,其利用的是 js 重写的 cocos2d-x 引擎。
CocosCreator 则是一个立足于跨平台 javascript 手游开发的全新平台。
Cocos Creator 文档是描述这个编辑器用法的。而核心引擎另开了文档,是 cocos2d-x 的文档。
特别对比 Cocos Studio 和 Cocos Creator 如下:
Cocos Studio | Cocos Creator | |
---|---|---|
编写游戏逻辑 | C++, Lua, JavaScript | JavaScript |
扩展引擎功能 | C++ 为主,Lua 和 JavaScript 为辅 | JavaScript |
制作编辑器扩展 | C# | JavaScript |
核心架构思想 | 继承式 | 组件式 |
垃圾自动回收 | 无 | 有 |
3D 支持 | 有 | 无 |
工作流 | 以程序员为中心 | 以策划为中心 |
支持 2dx 版本 | Cocos2d-x v2.x~3.x | Cocos2d-x v3.3及以上 |
上表来自: cocos studio和cocos creator关系