cocos-engine

cocos活跃维护

免费开源的跨平台 2D/3D 游戏引擎,支持 WebGL、Vulkan、Metal 等图形后端,帮助开发者高效制作并发布高性能游戏和网页互动内容。

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.

3.8.8发布于 2025-12-16 03:54 UTC9,913star +5 / 7 天2,147fork同步于 2026-11-10 11:30 UTC

怎么上手

由 README 提炼,执行前请确认
npm install
npm run build
硬件要求按 README 说明

README 未说明显存或 GPU 型号要求;仅说明图形后端在 Windows/Android 用 Vulkan、macOS/iOS 用 Metal、Web 用 WebGL。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

Cocos Creator 编辑器的运行时引擎,为 2D/3D 游戏提供跨平台高性能渲染与脚本 API

免费开源的跨平台 2D/3D 游戏引擎,支持 WebGL、Vulkan、Metal 等图形后端,帮助开发者高效制作并发布高性能游戏和网页互动内容。

核心能力

  • GFX 适配 Vulkan、Metal、WebGL 现代图形 API
  • C++ 与 TypeScript 混合实现,底层渲染与场景管理走 C++
  • 内置可自定义的前向与延迟渲染管线
  • 基于 effect 格式的可扩展表面着色器与 PBR 材质
  • TypeScript 用户级 API 配合 VSCode 开发

容易踩的坑

引擎是 Cocos Creator 编辑器的运行时库,不能独立使用,需在编辑器中配置自定义引擎;开发环境需先装 node.js v9.11.2+ 和 gulp-cli v2.3.0+;构建原生应用需另行参考 native/README.md。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

4 个版本3.8.8
  1. 3.8.8Release 3.8.8最新正式版2025-12-16 · 2025-12-16 03:54 UTC

    这个版本没有写更新说明。

  2. 3.8.7Release 3.8.72025-08-22 · 2025-08-22 10:07 UTC

    这个版本没有写更新说明。

  3. 3.8.7-beta0pre-release2025-04-28 · 2025-04-28 08:59 UTC

    这个版本没有写更新说明。

  4. 3.8.6Release 3.8.62025-03-27 · 2025-03-27 10:19 UTC

    这个版本没有写更新说明。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    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.

    image

    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.

    image

    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

    Clone

    Clone this repository into your local environment.

    Install

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

    # 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:
    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