返回排行榜

cocos/cocos-engine

C++cocos.com/en/creator

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.

cocoscocoscreatorgame-enginegame-developmentopen-sourcegamedevenginevulkanmetalmit-license3dwebgl
Star 增长趋势
Star
9.7k
Forks
2.1k
周增长
Issues
885
5k
2023年1月2024年3月2025年5月2026年7月
README

Cocos Creator Logo

stars forks license twitter

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.
相关仓库
zfoo-project/zfoo

💡Extremely fast enterprise server framework, can be used in RPC, game server, web server.

JavaMavenApache License 2.0nettyserialization
2k416
netyouli/WHC_ConfuseSoftware

iOS代码混淆工具,Uniapp代码混淆工具,react-native代码混淆, iOS代码混淆助手,Android代码混淆助手,Uniapp代码混淆助手,过机器审核,辅助过4.3, other审核,android、ios、uniapp、u3d、cocos2dx、flutter、代码翻新(WHC_ConfuseSoftware)是一款运行在MAC OS平台的App、完美支持Objc和Swift、U3D、Flutter、Cocos2dx项目代码的自动翻新(混淆)、支持文件夹名称、文件名、修改资源文件hash值、类名、方法名、属性名、添加混淆函数方法体、添加混淆属性、自动调用生成的混淆方法、字符串混淆加密等...功能强大而稳定。

Swiftconfusesoftwareconfuse
wuhaichao.com
1.8k259
outtable/confuse-9live

🔥🔥🔥 专业版iOS混淆工具,马甲工具包、ipa静态分析工具(相似度对比、敏感词检测),提供试用版本,100%过机器审核,解决 AppStore 4.3,2.3.1问题,支持语言 c、c++、objc、dart、swift 并支持各种资源改名,混淆、傻瓜化操作、一键出包,提供良好的UI界面,支持多包管理一包一特征、支持Unity3d、cocos2d全家桶、swiftUI、flutter、虚幻等各种引擎。支持混淆.a/.framework/.xcframework,混淆比例95%,支持dSYM文件混淆和恢复功能,不影响bugly等各种在线崩溃收集,可持续迭代原工程。

Swiftiosswiftui
1.6k52
cocos/example-projects

Example project to guide users through how to create game with Cocos Creator

JavaScriptnpmcocoscocos-creator
1.3k585
ifengzp/cocos-awesome

基于cocos creator游戏引擎的游戏常用功能模块集锦,以及shader特效实现集锦

TypeScriptnpmcocostypescript
cocos-awesome.ifengzp.com
1.1k358
kingston-csj/jforgame

jforgame是一个一站式游戏服务器开发框架。包含游戏服务器开发所需要的各种组件,比如socket服务端与客户端,高性能线程模型,自定义二进制消息编解码,自定义orm工具,游戏热更新,配置表自动化仓库,游戏通用工具等等。包含游戏服,跨服,匹配服,后台管理系统等实现,同时提供大量业务案例以供学习。亦可用于其他socket应用,例如及时聊天等。

JavaMavenApache License 2.0javagame
1.1k338
wyb10a10/cocos_creator_framework

cocos creator 基础框架,包含资源、ui管理,网络模块

TypeScriptnpmcocoswebsokcet
1k359