关于 Cocos Creator
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Cocos Creator 是一个跨平台游戏引擎,全世界的许多开发者都使用它。它可以帮助您高效地制作 2D 和 3D 游戏和应用。

在 Cocos Creator 中构建 Android 游戏的步骤
如需使用 Cocos Creator 针对 Android 平台构建游戏,请按以下步骤操作:
下载并安装 Cocos Dashboard。
启动 Cocos Dashboard。前往 Editor(编辑器)标签页,然后点击 Download(下载)以添加相应的 Cocos Creator 版本。我们强烈建议您尽可能使用最新版本。
前往 Project(项目)标签页,然后点击 New(新建)以创建新的 Cocos Creator 项目。
选择编辑器版本,输入您的项目名称,选择要存储到的位置,然后点击 Create(创建)。
您可以开始制作游戏了!
使用 Project > Build(项目 > 构建)面板将游戏导出到 Android。
在 Android Studio 中编译并生成这款 Android 应用。
重要功能
Google Play 免安装体验
借助 Google Play 免安装体验,用户无需事先安装,即可使用应用或游戏。您可以通过在 Play 商店和 Google Play 游戏应用中显示自己的免安装应用,提升您的 Android 应用的互动度或安装量。如需了解该技术在 Cocos Creator 中的运作方式,请参阅在 Cocos Creator 中将您的游戏发布为 Google Play 免安装应用。
Android App Bundle (AAB)
Android App Bundle(或称 AAB)是一种发布格式,其中包含一个应用的所有经过编译的代码和资源。利用这种发布格式,您只需准备 app bundle,而 APK 生成及签名则交由 Google Play 来完成。如需了解详情,请参阅在 Cocos Creator 中使用 Android App Bundle 发布游戏。
Swappy
Android Frame Pacing 库(也称为 Swappy)是 Android Game SDK 的一部分。它可帮助 OpenGL 和 Vulkan 游戏在 Android 上实现流畅的渲染和正确的帧同步。
开发者可以在“Build”(构建)面板上选中“Enable Swappy”(启用 Swappy)复选框,从而在 Cocos Creator 中轻松启用 Swappy。
如需了解详情,请参阅 Google 文档 Frame Pacing 库概览。
Vulkan
Cocos Creator 支持 Vulkan,这是一个适用于高性能 3D 图形的低开销、跨平台 API,可用作图形 API 后端之一。开发者可以从 Cocos Creator 中的“Build”(构建)面板选择 Vulkan 作为面向 Android 的图形 API。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# About Cocos Creator\n\n[Cocos Creator](https://www.cocos.com) is a cross-platform game\nengine used by many developers all over the world. It helps you create 2D and 3D\ngames and applications with great efficiency.\n\nSteps to build a game for Android in Cocos Creator\n--------------------------------------------------\n\nTo use Cocos Creator to build your game for Android platform, follow these\nsteps:\n\n1. [Download](https://www.cocos.com/en/creator/download) and\n [install](https://docs.cocos.com/creator/manual/en/getting-started/install/)\n the **Cocos Dashboard**.\n\n2. Launch the **Cocos Dashboard** . Go to the **Editor** tab and click\n **Download** to add a version of the Cocos Creator. We highly recommend that\n you use the latest version if possible.\n\n3. Go to the **Project** tab and click **New** to create a new Cocos Creator\n project.\n\n4. Choose an editor version, input your project name, select a location to\n store, and then click **Create** .\n\n5. You are good to go for creating your game!\n\n6. [Export your game to\n Android](https://docs.cocos.com/creator/manual/en/editor/publish/native-options.html#build-for-android)\n using the **Project \\\u003e Build** panel.\n\n7. Compile and Generate the Android application in Android Studio.\n\nNotable features\n----------------\n\n### Google Play Instant\n\nWith [Google Play Instant](/topic/google-play-instant), people can\nuse an app or game without installing it first. Increase engagement with your\nAndroid app or gain more installs by surfacing your instant app across the Play\nStore and Google Play Games app. To see how it works in Cocos Creator,\nrefer to [Publish your game as Google Play Instant app in Cocos\nCreator](/games/engines/cocos/cocos-playinstant).\n\n### Android App Bundle (AAB)\n\nAn Android App Bundle (or AAB) is a publishing format that includes all your\napp's compiled code and resources, and defers APK generation and signing to\nGoogle Play. For more details, refer to [Publish your game with Android\nApp Bundle in Cocos Creator](/games/engines/cocos/cocos-aab).\n\n### Swappy\n\nThe Android Frame Pacing library, also known as Swappy, is part of the [Android\nGame SDK](https://android.googlesource.com/platform/frameworks/opt/gamesdk/). It\nhelps [OpenGL](https://source.android.com/docs/core/graphics/arch-egl-opengl)\nand [Vulkan](https://source.android.com/docs/core/graphics/arch-vulkan) games\nachieve smooth rendering and correct frame pacing on Android.\n\nDevelopers can easily activate Swappy in Cocos Creator by selecting the \"Enable\nSwappy\" checkbox on the build panel.\n\nFor more information, refer to the Google document [Frame Pacing Library\nOverview](https://source.android.com/docs/core/graphics/frame-pacing).\n\n### Vulkan\n\n[Vulkan](https://source.android.com/docs/core/graphics/arch-vulkan), a\nlow-overhead, cross-platform API for high-performance 3D graphics, is supported\nin Cocos Creator as one of the graphics API backends. Developers can select\nVulkan as the graphics API for Android from the build panel in\nCocos Creator."]]