Skip to content

Distributing computation of different game elements in separate machines - demo on a Pong game

Notifications You must be signed in to change notification settings

abhigyank/Distributed-Game-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distributed-Game-Framework

Distributing computation of different game elements in separate machines to remove computation load from the game rendering machine. All game element computations are done in the server in a distributed manner. Client machines connect to server to begin game, and then communicate with Kafka servers to get game element informations.

Getting started

Distributed-Game-Framework requires Go >= 1.14 and a running Kafka >= 2.12 server.

Install Go Dependencies -

  • go get -v -d -x github.com/veandco/go-sdl2/{sdl,img,mix,ttf}
  • go get -v -d -x github.com/segmentio/kafka-go

Running for developemnt -

  1. Start kafka server prefereable on port 9092.
  2. Start server - go run server.go --kafkaAddress localhost:9092
  3. In a new terminal start first client - go run client.go --clientAddress 127.0.0.1:5000
  4. In another new terminal start second client - go run client.go --clientAddress 127.0.0.1:5001
  5. Game starts once bootstrap is completed (5-7 seconds).

About

Distributing computation of different game elements in separate machines - demo on a Pong game

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages