Add support for fixed object geometry

also updated config file
This commit is contained in:
sm
2014-05-11 21:49:06 -07:00
parent 961cf5d7da
commit c9dfa27320
5 changed files with 54 additions and 10 deletions
+7 -1
View File
@@ -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()