Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
PC Üzerinde Google Play Games örnekleri ve eklentileri, SDK entegrasyonlarını gösterir.
.
AGDKTunnel
AGDKTunnel, NDK örneği Endless Tunnel'dan türetilmiştir. AGDKTunnel, aşağıdaki PC Üzerinde Google Play Games SDK entegrasyonlarını gösterir:
Play kimliği ve buluta kaydetme için Google Play Games Hizmetleri
PC Üzerinde Google Play Games için SDK girişi
PC Üzerinde Google Play Games için derlemeyi etkinleştirme
Derleme varyantları, varsayılan (mobil) platformu ayırt etmek için kullanılır
ve PC platformu. PC Üzerinde Google Play Games'de çalıştırılacak AGDKTunnel oluşturmak için
şu adımları uygulayın:
(İsteğe bağlı) Mobil cihazlarda ve PC'de buluta kaydetme özelliğini etkinleştirmek için Google Play Games Hizmetleri'ni etkinleştirin.
(İsteğe bağlı) DXT1 sıkıştırılmış doku öğelerini yayınlamak için Play Asset Delivery API'yi etkinleştirin.
Google Play Games Hizmetleri'ni etkinleştir
Google Play Games Hizmetleri (PGS), oturum açma ve buluta kaydetme için kullanılır.
Bu özellikleri etkinleştirmek için aşağıdakileri yapın:
AGDKTunnel paketini istediğiniz bir adla yeniden adlandırın.
Google Play Console'da uygulama oluşturun ve adımları uygulayın
kullanarak Google Play Games Hizmetleri'ni kurun.
app/src/main/res/values/strings.xml içindeki game_services_project_id dize değerini Google Play Console'daki projenizin kimliğiyle değiştirin.
Trivial Kart
Google Play teknolojilerinin şu cihazlarda kullanımını gösteren örnek bir oyun:
Unity motoruyla Android.
PC Üzerinde Google Play Games'deki oyunda şunlar gösterilir:
platform_utils_package, Unity ile PC Üzerinde Google Play Games rutinlerini otomatikleştirmek için kullanılan bir araçtır. Paket aşağıdaki özellikleri içerir:
GPG platform tanımlama komut dosyası: Oynatıcı ayarlarındaki özel tanımlar listesine UNITY_ANDROID_x86_64 tanımlaması ekler.
Öğe içe aktarıcı komut dosyası: İçe aktarılan her dokuyu seçilen bir doku sıkıştırmasına ayarlar (varsayılan olarak DXTC)
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-27 UTC."],[],[],null,["# Samples and plug-ins\n\nThe samples and plug-ins for Google Play Games on PC demonstrate the SDK integrations\nfor certification and configuration of games in the PC environment.\n\nAGDKTunnel\n----------\n\n[AGDKTunnel](https://github.com/android/games-samples/tree/main/agdk/agdktunnel)\nis derived from the NDK sample Endless Tunnel. AGDKTunnel demonstrates the\nfollowing Google Play Games on PC SDK integrations:\n\n- Google Play Games Services for Play identity and cloud save\n- Input SDK for Google Play Games on PC\n\n### Enable build for Google Play Games on PC\n\nBuild variants are used to differentiate between the default (mobile) platform\nand the PC platform. To build AGDKTunnel to run in Google Play Games on PC,\nfollow these steps:\n\n1. Go to **Build \\\u003e Select Build Variant** and select the **playGamesPC** build variant.\n2. (Optional) Enable **Google Play Games Services** to turn on cloud save on mobile and PC.\n3. (Optional) Enable **Play Asset Delivery API** to deliver DXT1 compressed texture assets.\n\n### Enable Google Play Games Services\n\nGoogle Play Games Services (PGS) is used for sign-in and cloud save.\nTo enable these features, do the following:\n\n1. Rename the AGDKTunnel package to a name of your choosing.\n2. Create an application on the Google Play Console and follow the steps to set up Google Play Games Services using your package name.\n3. Replace the `game_services_project_id` string value in `app/src/main/res/values/strings.xml` with the ID of your project in the Google Play Console.\n\nTrivial Kart\n------------\n\nA sample game demonstrating use of Google Play technologies on\nAndroid with the Unity engine.\nFor Google Play Games on PC, the game demonstrates:\n\n- [Google Play Games Services](/games/pgs/overview) for sign-in, achievements, leaderboards, friends, and cloud save\n- [Play Integrity](/google/play/integrity/overview) for receiving integrity signals about device integrity and Play license status\n- The Input SDK for Google Play Games on PC\n\nSee the [trivialkart-unity](https://github.com/android/games-samples/tree/main/trivialkart/trivialkart-unity) sample for configuration information.\n\nGoogle Play Games Unity plug-ins\n--------------------------------\n\n### Platform utils\n\nThe [platform_utils_package](https://github.com/android/games-samples/tree/main/googleplaygamesforpc/unity_projects/platform_utils_package)\nis a tool for automating routines\nfor Google Play Games on PC with Unity. The package includes the following features:\n\n- GPG platform define script: Adds a UNITY_ANDROID_x86_64 define to the list of custom defines within Player settings\n- Asset importer script: Sets every imported texture to a chosen texture compression (DXTC by default)\n- Window options: Sets window options available under **Tools \\\u003e GPG Settings**\n\n### Input capture\n\nThe [input-capture_package](https://github.com/android/games-samples/tree/main/googleplaygamesforpc/unity_projects/input_capture_package)\ndemonstrates mouse input capture features:\n\n- [Mouse input capture](/games/playgames/input-mouse#capture_mouse_input) with Spacebar toggle\n- Mouse button state events\n- Mouse scroll events\n- Screen geometry detection"]]