https://github.com/abhigyank/distributed-game-framework
Distributing computation of different game elements in separate machines - demo on a Pong game
https://github.com/abhigyank/distributed-game-framework
distributed-framework golang
Last synced: 29 days ago
JSON representation
Distributing computation of different game elements in separate machines - demo on a Pong game
- Host: GitHub
- URL: https://github.com/abhigyank/distributed-game-framework
- Owner: abhigyank
- Created: 2020-06-03T11:27:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-13T10:13:28.000Z (over 5 years ago)
- Last Synced: 2024-06-21T16:58:06.888Z (over 1 year ago)
- Topics: distributed-framework, golang
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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).