1v1 web game where players control shapes and wage war against eachother
Inside ./client/frontend/src/pages/Home.js, there is this.local inside the constructor. Set this.local to true. If you have just cloned this repository, this has already be done for you.
cd ./client/frontend
yarn install
yarn start
Inside ./game-server/main.go there is const local at the top of the file. Set const local = true. If you have just cloned this repository, this has already be done for you.
cd ./game-server
go run .
You might also want to build the executable if you are going to be restarting the local game-server multiple times
go build -o ./game-server.exe
./game-server.exe
- Open up two instances of your favorite browser (Chrome, Firefox, etc.) and navigate to localhost:3000.
- Enter a Nickname and click play on each instance.
- Enjoy the game!
I do not recommend having just one browser with seperate tabs running the game, as this does not work 100% of the time.
Take a look inside the ./install and ./install/prod folders for instructions.
I have removed the custom certs that were used to get https working, so you will have to build your own or find a workaround that doesn't require certs.
$Env:REGISTRY="gcr.io/[YOUR_REGISTRY_URL]"
docker build -t $env:REGISTRY/client ./client/
docker push $env:REGISTRY/client
docker build -t $env:REGISTRY/director ./director/
docker push $env:REGISTRY/director
docker build -t $env:REGISTRY/matchfunction ./matchfunction/
docker push $env:REGISTRY/matchfunction
docker build -t $env:REGISTRY/game-server ./game-server/
docker push $env:REGISTRY/game-server
docker build -t $env:REGISTRY/cloud-mysql ./cloud-mysql/
docker push $env:REGISTRY/cloud-mysql
kubectl delete --all pods --namespace=default
kubectl delete --all deployments --namespace=default
kubectl delete --all services --namespace=default
docker system prune -a
kubectl delete gs --all
- Go backend
- React frontend
- MySQL leaderboards/mmr
- Kubernetes & Docker for scalability
Agones doesn't work for Kubernetes 1.18.0 yet