Android 游戏使用入门
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
通常,您会先在游戏引擎(例如 Unity、Unreal、Defold 或 Godot)中开始开发游戏。您也可能会在该位置进行视觉设计。然后,您可以使用 Android 工具开发、优化和分发游戏。
开发
如需开发 Android 游戏,您可以将 Android Game Development Kit (AGDK) 与游戏引擎搭配使用。AGDK 包含核心 Android 游戏开发工具和库。其中包括 C/C++ 游戏集成、性能调优、高性能音频,以及用于使用或自定义游戏引擎的功能。
有些游戏引擎集成了 AGDK 组件,因此您无需修改游戏引擎即可构建 Android 游戏。您还可以使用 AGDK 自行开发或自定义游戏引擎。
您可以使用 Android Game Development Extension (AGDE),这是一个 Visual Studio 扩展程序,可用于在 Visual Studio 中开发将 Android 作为目标平台的游戏。
您可以使用 Google Play 游戏服务为游戏添加社交功能,查看游戏内容统计数据,并在多种设备上提供跨平台游戏内容。您可以在 Google Play 管理中心内设置和管理 Play 游戏服务,然后使用适用于 Android、C 和 Unity 的 Play 游戏服务 API 添加功能。
您可以使用 Google Play 游戏电脑版,该平台可借助高性能模拟将 Android 游戏推广到 PC 上,只需一个代码库即可实现顺畅的 Android 和 ChromeOS 跨设备畅玩体验。
您可以使用 Android NDK 使用 C 或 C++ 以原生代码开发 Android 应用。它让游戏能够更直接地访问设备硬件,从而提高游戏性能。借助它,您还可以重复使用 C 和 C++ 库,并跨多个平台共享游戏代码。对于特定类型的应用,这有助于您重复使用以这些语言编写的代码库。
前往“开发”
优化
您可以根据所需的特征(例如电池续航时间或性能提升)优化游戏。优化工具包括:
前往“优化”
发布
您可以使用 Google Play 为 Android 游戏添加服务并分发游戏。
借助边下载边玩功能,您可以让玩家只需下载少量内容就能快速体验游戏乐趣,同时在后台提取剩余的游戏资源。
前往“发布”页面
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[],[],null,["# Get started with Android games\n\nTypically, you start developing your game in a game engine, such as Unity,\nUnreal, Defold, or Godot. That's likely to be where you do your visual design,\nas well. Then you work in Android tools to develop, optimize, and distribute\nyour game.\n\nDevelop\n-------\n\nTo develop Android games, you use the\n[Android Game Development Kit (AGDK)](/games/agdk) in combination\nwith your game engine. The AGDK comprises core Android game development tools\nand libraries. It includes C/C++ game integration, performance tuning,\nhigh-performance audio, and features for using or customizing game engines.\n\nSome game engines have integrated AGDK components, so you can build Android\ngames without modifying the game engine. You can also use AGDK to develop or\ncustomize a game engine yourself.\n\nYou can use the [Android Game Development Extension (AGDE)](/games/agde), a\nVisual Studio extension you can use to develop games in Visual Studio that\ninclude Android as a target platform.\n\nYou can use [Google Play Games services](/games/pgs/overview) to add social\nfeatures to your game, view\ngameplay stats, and provide cross-platform gameplay across multiple devices. You\ncan set up and manage Play Games Services in the Google Play Console, and then\nadd features using the Play Games Services APIs for Android, C, and Unity.\n\nYou can use [Google Play Games for PC](/games/playgames/overview), a platform\nthat brings your Android game to PCs\nusing high-performance emulation with Android and ChromeOS cross-device play\nfrom a single codebase.\n\nYou can use the [Android NDK](/ndk) to develop an Android app in\nnative code using C or C++. It can increase the performance of your game by\nproviding it with more direct access to device hardware. It also lets you\nreuse C and C++ libraries, and share game code across multiple platforms. For\ncertain types of apps, this can help you reuse code libraries written in those\nlanguages.\n\n[Go to Develop](/games/develop/overview)\n\nOptimize\n--------\n\nYou can optimize your games for the characteristics you want, such as battery\nlife or improved performance. Optimization tools include the following:\n\n- [Android GPU Inspector (AGI)](/agi), an advanced\n graphics and system profiling tool that provides tracing and\n analysis of individual frames.\n\n- [Android Performance Tuner (APT)](/games/sdk/performance-tuner), a tool you\n can use to measure and optimize frame rates, graphical fidelity, loading time\n and loading abandonment across many Android devices at scale.\n\n- [Android Dynamic Performance Framework (ADPF)](/games/optimize/adpf), a set of\n APIs you can use to optimize\n game performance at a sustainable level that doesn't overheat devices.\n\n[Go to Optimize](/games/optimize/overview)\n\nPublish\n-------\n\nYou use [Google Play](/games/distribute) to add services to and distribute\nAndroid games.\n\nWith [Play as you Download](/games/distribute/play-as-you-download), you can\nallow your players to get into gameplay quickly after a\nsmall download while remaining game assets are fetched in the background.\n\n[Go to Publish](/games/distribute/overview)"]]