How can I create a friends list with GameLift?

0

Hey, How can I implement a friends list in GameLift? I am still a beginner in GameLift. Currently I have built my own server and client on which my game is already running, but the individual clients only communicate with each other when the game session is started and only these clients can communicate with each other via the server. For a friends list, however, all players in the region must be able to communicate with each other, so that they receive invitations and more.

How can I implement this?

I am grateful for any help!

질문됨 3년 전338회 조회
1개 답변
0

GameLift doesn't have a notion of client -> client communication, it 'enables' some of this by bringing a group of players to a common server and the server can then facilitate chat between the connected players.

You'd probably need to look at some form of:

  • Player/Identity management: Players are registered when then first come into your game. Tracks which client is which identity (and links identities you use to some common based identity)
  • Presence: Tracks if players are active/online.
  • Notification/Communicator: Allows direct client->client communication (can route messages between clients as required). Handles notifications, receipts, invites.

Its a lot to build.

Theres a lot of examples of pieces of this, ie Presence (https://aws.amazon.com/blogs/gametech/building-a-presence-api-using-aws-appsync-aws-lambda-amazon-elasticache-and-amazon-eventbridge/) but you really need to know your requirements and have a good design first.

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠