Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

cocos-engine

> 编程语言
Open source

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create

9.7K stars0 likes0 views
WebsiteGitHub

About

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create

</a>

</a>
<a href="https://github.com/cocos-creator/engine/network">
    
</a>
<a href="./licenses/LICENSE">
    
</a>
<a href="https://twitter.com/CocosEngine">
    
</a>

Engine for Cocos Creator

Cocos Creator is the new generation of game development tool in Cocos family, it brings a complete set of 3D and 2D features while providing an intuitive, low cost and collaboration friendly workflow to game developers. Cocos Engine is the runtime framework for Cocos Creator editor.

Cocos Creator inherited many good qualities and cool features from its previous versions, such as high performance low level C++ implementation, intuitive editor, cross-platform support. It supports native platforms, web platforms and rapidly expanding instant gaming platforms, including Windows, Mac, iOS, Android, HarmonyOS, Web, Facebook Instant Games, WeChat Mini Game and TikTok Mini Games.

Furthermore, Cocos Creator has pushed the engine technology to a whole new level for high performance with scalability on various platforms, full extensibility and easy development.

  1. Modern Graphics: The GFX implementation is designed to adapt to the modern graphics APIs, it uses Vulkan on Windows and Android, Metal on Mac OS and iOS, and WebGL on Web platforms.
  2. High Performance: The runtime engine is built with half C++ and half TypeScript, low-level infrastructure, native platform adaptation, renderer, and scene management are all written in C++ to ensure high runtime performance. We continue to move heavy lifting work to native as much as possible.
  3. Customizable Render Pipeline: The render pipeline is designed to be fully customizable, it has supported the builtin forward and deferred render pipeline across all platforms. Developers can customize their render pipeline following the same approach.
  4. Extensible Surface Shader: The material system is built on Coco's effect format which uses GLSL 300, the shader programs will be converted to a suitable runtime format automatically. The surface shader permits to fully customize the surface material while ensuring a universal lighting model.
  5. Physically Based Rendering (PBR): The standard effect adopts physically based rendering, along with the physically based camera and the lighting based on physical metrics, developers can easily achieve realistic and seamless rendering results across different environments.
  6. Easy TypeScript API: The user-level API set is provided in TypeScript, along with the powerful VSCode editor, development with Cocos Creator is incredibly efficient.

Besides all these highlights, Cocos Creator also provides a built-in animation system, physics system, particle system, terrain editing support, complex UI system, instant preview, etc.

This open-source repository is the runtime engine of Cocos Creator, the engine is naturally integrated within Cocos Creator, designed to only be the essential runtime library and not to be used independently.

Development and Contribution Notice

Cocos Creator engine is open source and welcomes community participation, for open source engine development with Cocos Creator editor, you should fork this repository and setup custom engine in the editor.

Prerequisite

  • Install node.js v9.11.2 +
  • Install gulp-cli v2.3.0 +

Clone

Clone this repository into your local environment.

Install

In the cloned engine folder, run the following command to set the development environment:

bash
# download & build engine dependencies
npm install

This is all you have to do to set up the engine development environment.

Build

  • If running inside Cocos Creator, the engine will automatically compile and build after the editor window is opened. For more instructions on modifying the engine in Cocos Creator, please refer to Engine Customization Workflow.
  • Outside the editor, you need to run the following command to build:
bash
npm run build

Please refer to native readme if you want to develop native applications.

Contribution

You can contribute to the Cocos Creator open-source engine in many ways, they are very much appreciated:

  1. Report bugs or feature requests by creating an issue.
  2. Participate in discussions in the issues.
  3. Create a pull request if you have fixed or improved anything, or implemented any features.
  4. Improve the documentation with pull requests to the usage documentation repository.
  5. Help other developers in our Forum.

Contribution notice

If you are trying to make a pull request, some requirements must be met so that your pull request can be accepted:

  1. Follow our Cpp Coding Style Guide and TypeScript Coding Style Reference.
  2. Try to integrate ESLint and CPP auto fix tools in your coding environment.
  3. Link related issues or discussions in your pull request and clearly state the purpose of your pull request.
  4. Pass all automatic continuous integration tests.
  5. Request file owners or engine developers to review your pull request.
  6. Get one valid approval from the engine architects.

Example Project

  • Mind Your Step 3D: Beginner's step-by-step tutorial project repo.
  • Test Cases: Unit test scenes for every engine module.
  • Example Cases: Simple yet expressive demo scenes for baseline testing and topic-specific case study.
  • Awesome Cocos: You can find out other useful tools and show cases here.

Links

  • Official site
  • Download
  • Documentation
  • API References
  • Projects and road map
  • Forum
  • Discord community: Search for Cocos in the Discover panel of Discord.

Issues· 1020 open

View all issuesOpen on GitHub
  • #19250

    asset-db can start without any importers: its worker races engine-extends at editor start-up (3.8.8, macOS)

    Updated Sep 28, 2026
  • #16799

    WeChat mini-game platform sets the font to be invalid

    BugEnv: MiNiGameUpdated Sep 28, 2026
  • #19249

    H5 构建转译与第三方代码的兼容性问题 @flatten-js/core

    BugNeeds TriageUpdated Sep 28, 2026
  • #19176

    [iOS] Crash in AudioCache::invokingLoadCallbacks during Engine::destroy (CC_CURRENT_ENGINE unsafe on audio thread)

    Updated Sep 23, 2026
  • #19232

    web-mobile build rewrites super accessor setter and causes infinite recursion

    Updated Sep 22, 2026
  • #19231

    388 label blurred

    BugP2Updated Sep 22, 2026
  • #18970

    安卓原生, 延迟激活子节点的渲染组件时, 节点上的透明度无法发挥作用.

    BugNeeds TriageUpdated Sep 17, 2026
  • #19107

    3.8.7使用Jenkins命令行构建项目时资源meta文件会被修改导致无法找到资源

    BugNeeds TriageUpdated Sep 16, 2026
  • #18923

    [Spine] 3.8.7 setSlotTexture会让所有bone的active变为true

    BugNeeds TriageUpdated Sep 16, 2026
  • #17085

    [性能优化] 希望将 `batcher-2d.ts`文件中的 `walk` 方法改为非递归.

    Feature RequestNeeds TriageUpdated Sep 9, 2026

> Tags

C++3dcocoscocoscreatorengine

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言