|
|
@ -11,18 +11,19 @@ import (
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
var options struct {
|
|
|
|
var options struct {
|
|
|
|
|
|
|
|
bombCost int
|
|
|
|
bombSpeed float64
|
|
|
|
bombSpeed float64
|
|
|
|
debug bool
|
|
|
|
debug bool
|
|
|
|
economic int
|
|
|
|
economic int
|
|
|
|
frameRate int
|
|
|
|
|
|
|
|
frameLength time.Duration
|
|
|
|
frameLength time.Duration
|
|
|
|
|
|
|
|
frameRate int
|
|
|
|
lightSpeed float64
|
|
|
|
lightSpeed float64
|
|
|
|
makeBombTime time.Duration
|
|
|
|
makeBombTime time.Duration
|
|
|
|
moneyMean float64
|
|
|
|
moneyMean float64
|
|
|
|
moneySigma float64
|
|
|
|
moneySigma float64
|
|
|
|
playerSpeed float64
|
|
|
|
playerSpeed float64
|
|
|
|
respawnTime time.Duration
|
|
|
|
|
|
|
|
respawnFrames int64
|
|
|
|
respawnFrames int64
|
|
|
|
|
|
|
|
respawnTime time.Duration
|
|
|
|
speckPath string
|
|
|
|
speckPath string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -116,4 +117,5 @@ func init() {
|
|
|
|
flag.StringVar(&options.speckPath, "speck-path", "/projects/exo/expl.speck", "path to exoplanet speck file")
|
|
|
|
flag.StringVar(&options.speckPath, "speck-path", "/projects/exo/expl.speck", "path to exoplanet speck file")
|
|
|
|
flag.DurationVar(&options.respawnTime, "respawn-time", 60*time.Second, "time for player respawn")
|
|
|
|
flag.DurationVar(&options.respawnTime, "respawn-time", 60*time.Second, "time for player respawn")
|
|
|
|
flag.DurationVar(&options.makeBombTime, "bomb-time", 5*time.Second, "time it takes to make a bomb")
|
|
|
|
flag.DurationVar(&options.makeBombTime, "bomb-time", 5*time.Second, "time it takes to make a bomb")
|
|
|
|
|
|
|
|
flag.IntVar(&options.bombCost, "bomb-cost", 500, "price of a bomb")
|
|
|
|
}
|
|
|
|
}
|
|
|
|