added config file support
This commit is contained in:
+6
-1
@@ -125,7 +125,12 @@ func addPlayer(ws *websocket.Conn) {
|
||||
if game == nil {
|
||||
force := *debug
|
||||
if force {
|
||||
game = NewGame(gid.Id, float32(*width), float32(*height))
|
||||
game = NewGame(
|
||||
gid.Id,
|
||||
float32(conf.Width),
|
||||
float32(conf.Height),
|
||||
conf.Tick,
|
||||
)
|
||||
go game.run()
|
||||
games.add(game)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user