開始使用 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 遊戲服務,並使用 Play 遊戲服務的 API 為 Android、C 和 Unity 新增更多功能。
您可以使用 Google Play 遊戲電腦版,這個平台可讓您使用單一程式碼集,透過 Android 和 ChromeOS 的跨裝置玩遊戲功能,在電腦上以高效能模擬 Android 遊戲。
您可以使用 Android NDK,以 C 或 C++ 開發 Android 應用程式的原生程式碼。透過讓遊戲更直接存取裝置硬體,協助改善遊戲效能。這套工具還允許重複使用 C 和 C++ 程式庫,並在多個平台上分享遊戲程式碼。對於特定類型的應用程式,這可讓您重複使用透過這些語言編寫的程式庫。
前往「開發」
最佳化
您可以根據所需的特性 (例如電池續航力或效能提升) 將遊戲最佳化。最佳化工具包括:
前往「最佳化」
發布
您可以使用 Google Play 為 Android 遊戲新增服務,並發行遊戲。
透過「邊玩邊下載」功能,您可以讓玩家在下載少量內容後迅速開始玩遊戲,同時在背景擷取剩餘的遊戲資產。
前往「發布」
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間: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)"]]