Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.
/ GameLift Public archive

Game Server/Client Sample for Amazon GameLift

License

Notifications You must be signed in to change notification settings

zeliard/GameLift

Repository files navigation

Amazon GameLift?

Amazon GameLift is a managed service for deploying, operating, and scaling session-based multiplayer games, reduces the time required to build a multiplayer backend from thousands of hours to just minutes. Available for developers using Amazon Lumberyard, Amazon GameLift is built on AWS’s highly available cloud infrastructure and allows you to quickly scale high-performance game servers up and down to meet player demand – without any additional engineering effort or upfront costs.

Amazon GameLift Deep Dive from Gaming on AWS 2016

The following presentation explains GameLift features and fundamentals: Amazon GameLift Deep Dive

This repository?

This repository consists of four projects:

  • GameLiftGameServer
    • A stand-alone game server example utilizing GameLift. But, it has no dependency with Lumberyard as well as GridMate.
    • WIN64-based game server which listens a TCP port for clients and handles those requests
  • DummyClients
    • WIN64-based client application for testing GameLift and GameLiftGameServer
    • Creating multiple clients which make TCP session to GameLiftGameServer and communicate GameLift service in order to establish game sessions and player sessions by using AWS C++ SDK
    • Game client workload generator: this can be extended for a GameLift scaling/stress test or scenario-based client bot test
  • Cocos2dxGameClient
    • A game client which integrates with Cocos2D-x game engine and AWS C++ SDK
    • GameLift Client API calls to GameLift services and a TCP connection to GameLiftGameServer
  • GameLiftLinuxServer
    • GameLiftGameServer Linux version

Overview: Screenshot

But, why?

I received many questions from game developers about GameLift. Major questions were like that:

  • Can we use other game engines such as Unreal3D and Unity3D with GameLift?
  • Can we leverage GameLift-alone with no dependency with Lumberyard?
  • How can we integrate our own game server to GameLift without GridMate?
  • Is there any other GameLift sample code using TCP protocol?

As you can see, the facts of the matter are to study GameLift-alone features for their game and they want to know how to use GameLift SDK. So, I have started to make a sample program for better communication with game developers. The goal of this project is to show interactions among a game server, game clients and Gamelift.

How?

It is easy to build and run GameLiftGameServer and DummyClients. The only prerequisite is Visual Studio 2013 or 2015.

  1. Open GameLiftGameServer solution file and then build it.
  2. Upload a GameLiftGameServer binary with affiliated files (dlls, logs in upload folder) by AWS CLI
  3. Create a GameLift Fleet by AWS Console
  4. Open DummyClients solution file and edit config.ini file. set ALIAS_ID, GAMELIFT_REGION and MAX_GAME_SESSIONS
  5. Build DummyClients and run. (AWS credential is required on your PC: environment variables or $HOME/.aws folder)
  6. For Cocos2dxGameClient, edit main.cpp file, set your ALIAS_ID, AWS_REGION, and then RUN! (you can login by pressing 'L' key.)

A Full-Stack Game Sample using GameLift

The sample code provided in this repository is focused on how to use GameLift features. See awslabs for an example of a real session-based multiplayer game.

And...

Some codes are written in a quick-and-dirty manner. But I plan to continuously improve these (if someone needs :)
Please pull-requests!

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages