rts-pathing

module
v0.0.0-...-f88b513 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2021 License: MIT

README

game

Implementation of DownFlux, a collaborative RTS.

Server CI

Setup

Cloning Repo
  1. Set up git

    git config --global push.default current
    
  2. Copy the SSH keys into ~/.ssh and set permission to 600 for id_rsa and 644 for id_rsa.pub.

  3. Add to SSH keychain

    ssh-add
    
  4. Test SSH access to GitHub

    ssh -T git@github.com
    
  5. Clone

    git clone git@github.com:downflux/game.git
    
  6. Install LFS for the repo

    git lfs install
    
Installing Bazel

Install Bazel via official docs.

Current verified Bazel version is 3.7.2.

bazel test -c opt \
  --features race ... \
  --nocache_test_results \
  --runs_per_test=10
CPU Profiler
sudo apt install graphviz gv
bazel run -c opt \
  //server/grpc:main -- \
  --cpuprofile=${F}
go tool pprof -http=localhost:8888 ${F}

Directories

Path Synopsis
engine
id
Package id generates random ID strings for server-side objects.
Package id generates random ID strings for server-side objects.
server/executor
Package executor contains the logic for the core game loop.
Package executor contains the logic for the core game loop.
status
Package status contains logic reguarding the current Executor state.
Package status contains logic reguarding the current Executor state.
server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL