Browse Source

Renamed config file, added sample

did this to allow for other configs in our namespace.
Stephen McQuay 5 years ago
parent
commit
6da0bfac7a
2 changed files with 8 additions and 1 deletions
  1. 1
    1
      botserv/main.go
  2. 7
    0
      config/server.json

+ 1
- 1
botserv/main.go View File

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

+ 7
- 0
config/server.json View File

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

Loading…
Cancel
Save