|
|
|
@ -11,18 +11,19 @@ import (
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var options struct {
|
|
|
|
|
bombCost int
|
|
|
|
|
bombSpeed float64
|
|
|
|
|
debug bool
|
|
|
|
|
economic int
|
|
|
|
|
frameRate int
|
|
|
|
|
frameLength time.Duration
|
|
|
|
|
frameRate int
|
|
|
|
|
lightSpeed float64
|
|
|
|
|
makeBombTime time.Duration
|
|
|
|
|
moneyMean float64
|
|
|
|
|
moneySigma float64
|
|
|
|
|
playerSpeed float64
|
|
|
|
|
respawnTime time.Duration
|
|
|
|
|
respawnFrames int64
|
|
|
|
|
respawnTime time.Duration
|
|
|
|
|
speckPath string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -116,4 +117,5 @@ func init() {
|
|
|
|
|
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.makeBombTime, "bomb-time", 5*time.Second, "time it takes to make a bomb")
|
|
|
|
|
flag.IntVar(&options.bombCost, "bomb-cost", 500, "price of a bomb")
|
|
|
|
|
}
|
|
|
|
|