تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
توضّح النماذج والمكوّنات الإضافية لبرنامج "ألعاب Google Play على الكمبيوتر" عمليات دمج حِزم تطوير البرامج (SDK)
للحصول على اعتماد وتشغيل الألعاب في بيئة أجهزة الكمبيوتر.
نفق AGDK
نفق AGDKTunnel
مشتق من عينة NDK Tunnel اللانهائي. يوضح AGDKTunnel
اتّباع عمليات دمج حزمة تطوير البرامج (SDK) التالية لبرنامج "ألعاب Google Play على الكمبيوتر":
"خدمات ألعاب Google Play" لهوية Play وحفظ في السحابة الإلكترونية
إدخال حزمة تطوير البرامج (SDK) لتطبيق "ألعاب Google Play على الكمبيوتر"
تفعيل الإصدار من أجل "ألعاب Google Play على الكمبيوتر"
تُستخدَم صيغ الإصدار للتمييز بين المنصة التلقائية (للأجهزة الجوّالة).
ومنصة الكمبيوتر الشخصي. لإنشاء AGDKTunnel لتشغيله في "ألعاب Google Play على الكمبيوتر"،
اتّبِع الخطوات التالية:
انتقِل إلى إنشاء > اختَر "صيغة الإصدار" واختَر صيغة الإصدار playGamesPC.
(اختياري) فعِّل خدمات ألعاب Google Play لتفعيل ميزة "الحفظ في السحابة الإلكترونية" على الأجهزة الجوّالة وأجهزة الكمبيوتر.
(اختياري) فعِّل واجهة برمجة التطبيقات Play Asset Delivery API لعرض مواد عرض مواد العرض المضغوطة بتنسيق DXT1.
تفعيل "خدمات ألعاب Google Play"
تُستخدَم "خدمات ألعاب Google Play" (PGS) لتسجيل الدخول والحفظ في السحابة الإلكترونية.
لتفعيل هذه الميزات، اتّبِع الخطوات التالية:
أعِد تسمية حزمة AGDKTunnel باسم من اختيارك.
إنشاء تطبيق على Google Play Console واتّباع الخطوات
لإعداد "خدمات ألعاب Google Play" باستخدام اسم الحزمة
استبدِل قيمة السلسلة game_services_project_id في
app/src/main/res/values/strings.xml برقم تعريف مشروعك في
Google Play Console
Trivial Kart
نموذج لعبة يعرض استخدام تقنيات Google Play على
Android باستخدام محرّك Unity
في "ألعاب Google Play على الكمبيوتر"، تعرض اللعبة ما يلي:
خدمات ألعاب Google Play لتسجيل الدخول والإنجازات وقوائم الصدارة والأصدقاء والحفظ في السحابة الإلكترونية
Play Integrity لتلقّي إشارات السلامة حول سلامة الجهاز وحالة ترخيص Play
حزمة تطوير البرامج (SDK) الخاصة بإدخال البيانات في تطبيق "ألعاب Google Play على الكمبيوتر"
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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"]]