More Related Content
Google Play Game Serviceで遊んでみた enchant.js meetup Tokyo vol.2 Tutorial 俺のXcodeがiBeaconを 発信しながらGistに投稿できるわけがない New android location ap is Google I/O 2013 報告会 Android Studio と Gradle Viewers also liked (10)
131759025 modul-bm-1-bhg-b 日曜プログラマーが
1週間くらいで通信対戦ゲームを作ってみた Android lint-srp-practice What is tested by pre-launch (security) reports? 全てSになる -RxJavaとLWSを持ち込む楽しさ- minneにおけるテスト〜リリース〜リリース後にやっている事の紹介 React Nativeはクロスプラットフォームモバイルアプリ開発の夢を見るか #DroidKaigi Similar to Google Play Game Servicesについて (6)
Gunmaweb#15 High score combination [GCC18] 世界中のプレイヤーを3つの「S」で支える Google Cloud Platform (GCP) 〜スピード・スケール・スタビリティ〜 ソーシャルゲーム開発パッケージ化とネイティブアプリの取り組みと開発ノウハウ Google Play Game Servicesについて
- 7. iOS
Google+用のSDKとPlay
Game
Services用のSDKを組み込めば簡単に利用出来る
(マルチプレイヤー以外)Androidと同程度のライブラリが用意されている
//
Leaderboardの表示(ViewControllerはライブラリに含まれている)
-‐
(IBAcEon)showLeaderboard:
(UIBuon
*)sender
{
//
You
get
this
leaderboard
Id
from
the
Developer
Console
GPGLeaderboardController
*leadController
=
[[GPGLeaderboardController
alloc]
initWithLeaderboardId:@"abcde"];
leadController.leaderboardDelegate
=
self;
[self
presentModalViewController:leadController
animated:YES];
}
- 13. //
get
the
invitee
list
final
ArrayList<String>
invitees
=
data.getStringArrayListExtra(GamesClient.EXTRA_PLAYERS);
//
create
the
room
Log.d(TAG,
"CreaEng
room...");
RoomConfig.Builder
rtmConfigBuilder
=
RoomConfig.builder(this);
rtmConfigBuilder.addPlayersToInvite(invitees);
rtmConfigBuilder.setMessageReceivedListener(this);
rtmConfigBuilder.setRoomStatusUpdateListener(this);
if
(autoMatchCriteria
!=
null)
{
rtmConfigBuilder.setAutoMatchCriteria(autoMatchCriteria);
}
switchToScreen(R.id.screen_wait);
keepScreenOn();
resetGameVars();
getGamesClient().createRoom(rtmConfigBuilder.build());
Log.d(TAG,
"Room
created,
waiEng
for
it
to
be
ready...");
ユーザ選択AcEvityの結果からRoomを作成する。
Roomを作成する際に、ユーザーの増減やメッセージの受信を行う
Listenerを設定する。