Renamed config file, added sample

did this to allow for other configs in our namespace.
This commit is contained in:
Stephen McQuay 2014-04-26 10:25:23 -07:00
parent fd53d3e51e
commit 6da0bfac7a
2 changed files with 8 additions and 1 deletions

View File

@ -19,7 +19,7 @@ var profile = flag.String("pprof", "", "if specified will run with pprof")
var mprofile = flag.String("mprof", "", "if specified will dump a memory profile") var mprofile = flag.String("mprof", "", "if specified will dump a memory profile")
var netprofile = flag.Bool("netprof", false, "if specified will run with net/http/pprof on :8667") var netprofile = flag.Bool("netprof", false, "if specified will run with net/http/pprof on :8667")
var verbose = flag.Bool("verbose", false, "") var verbose = flag.Bool("verbose", false, "")
var config = flag.String("config", "~/.config/hackerbots/config.json", "location of config file") var config = flag.String("config", "~/.config/hackerbots/server.json", "location of config file")
func main() { func main() {
log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile) log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile)

7
config/server.json Normal file
View File

@ -0,0 +1,7 @@
{
"tick": 66,
"timescale": 1.0,
"width": 1600,
"height": 1100,
"obstacle": 20
}