mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
eeb9d5c689
* 1、Merge platform adaptation layer code into the development branch 2、It passed the test in windows and ohos system * 1、Merge platform adaptation layer code into the development branch 2、It passed the test in windows and ohos system * 1、Fix github compile windows error * 1、Fix github compile windows error * 1. Adjust the code format; 2. Fix js automatic generation binding 3. Adjust github CI compilation * 1. Adjust the code format; 2. Fix js automatic generation binding 3. Adjust github CI compilation * Solve mac and ios compilation failure * Fix the problem of compilation of Windows-side simulator * 1. Adapt the simulator to a new adaptation layer; 2. Fix the compilation warning of ios, and the implicit conversion failed; 3. Fix the mac compilation error, due to the problem of adding the link identification -all_load; * 1.Add the isDisplayStats and setDisplayStats method to the screen interface * Fix clang-tidy compilation warning * Fix clang-tidy compilation warning * Repair the emulator, compatible with mac and win * 1、Repair detailed errors, including name modification and calling method modification 2、Delete redundant files in the template directory 3、Change the vibrate interface to vibrator 4、Fix word spelling errors * Rename interfaces to modules * Replace CC_ASSERT with CCASSERT * Replace CC_ASSERT with CCASSERT Co-authored-by: qiuguohua <>
engine-native
It is the native backend of Cocos Creator. It works on iOS, Android, Mac OS and Windows.
Coding format and coding style
The coding format file is .clang-format, and the coding style fomat file is .clang-tidy. Please use clang-format to format the codes and use clang-tidy to fix the coding style before commiting codes. See the linter auto-fix guide for more information.
Documentations
How to start a new game
You can refer to the documentation to start a new game.
Build Requirements
- macOS 10.14+, Xcode 11.5+ to build mac games
- with iOS 12.0+ to build iOS games
- or Windows 7+, Visual Studio 2017 15.7+ / Visual Studio 2019 to build win32 games
- NDK 18-21 is required to build Android games (22+ is not supported)
- Python 2.7+ (NOT Python 3) is needed to run scripts
- Cmake 3.8+ is required
Where to get help
Contributing to the Project
engine-native is licensed under the MIT License. We welcome participation!