mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
bd54a082a3
* Update spidermonkey backend for se. * Update cmakelist * Bug fix for se spidermonkey backend. * Fix constructor binding for spidermonkey backend. * Fix wrong syntax of calling native function in simple-texture.jsb.ts & builtin-res-mgr.jsb.ts * Use jsb.createExternalArrayBuffer for caching since it will not be moved during GGC. * Cleanup se spidermonkey backend * Add Object::createExternalArrayBuffer for se v8 backend. * Remove unused code in jsb_assets_manual.cpp * Add jsb.createExternalArrayBuffer binding. * Remove unused WebGLRenderingContext registeration. * Remove unused code in jsb_global_init.cpp * Add Root::setDevice. * Invoke ScriptEngine::mainLoopUpdate in Engine.cpp. * Update CMakeLists.txt * Make missing return type as an error. * Cleanup for sm/ScriptEngine.cpp * prefine.cmake fix for vs.
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+ (includes 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!