ソースを参照

Prevent from TPing into a wall.

Sacha Ligthert 2 年 前
コミット
d554bf73ef
1 ファイル変更2 行追加2 行削除
  1. 2 2
      game.go

+ 2 - 2
game.go

@@ -177,8 +177,8 @@ func quit(game *Game) {
 func (game *Game) randPos() Position {
 	var pos Position
 
-	x := 1 + rand.Intn(77)
-	y := 1 + rand.Intn(22)
+	x := 2 + rand.Intn(76)
+	y := 2 + rand.Intn(21)
 
 	pos.x = x
 	pos.y = y