Add support for fixed object geometry
also updated config file
This commit is contained in:
+7
-1
@@ -17,7 +17,13 @@ func (g *deathmatch) gameOver(gg *Game) (bool, *GameOver) {
|
||||
var stats *GameOver
|
||||
|
||||
if gg.players_remaining <= 1 && len(gg.players) > 1 {
|
||||
gg.obstacles = GenerateObstacles(gg.obstacle_count, gg.width, gg.height)
|
||||
if len(gg.defaultObstacles) == 0 {
|
||||
gg.obstacles = GenerateObstacles(
|
||||
gg.obstacleCount,
|
||||
gg.width,
|
||||
gg.height,
|
||||
)
|
||||
}
|
||||
log.Printf("game %s: game over", gg.id)
|
||||
stats = NewGameOver()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user