Git Product home page Git Product logo

gamelift's Introduction

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!

gamelift's People

Contributors

jwvg0425 avatar namse avatar zeliard avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.