From 6da0bfac7a6504ad9a496122b707d10345423a4a Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Sat, 26 Apr 2014 10:25:23 -0700 Subject: [PATCH] Renamed config file, added sample did this to allow for other configs in our namespace. --- botserv/main.go | 2 +- config/server.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 config/server.json diff --git a/botserv/main.go b/botserv/main.go index 7162645..448ed41 100644 --- a/botserv/main.go +++ b/botserv/main.go @@ -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 netprofile = flag.Bool("netprof", false, "if specified will run with net/http/pprof on :8667") 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() { log.SetFlags(log.Ldate | log.Ltime | log.Lshortfile) diff --git a/config/server.json b/config/server.json new file mode 100644 index 0000000..4404a1d --- /dev/null +++ b/config/server.json @@ -0,0 +1,7 @@ +{ + "tick": 66, + "timescale": 1.0, + "width": 1600, + "height": 1100, + "obstacle": 20 +}