|
|
@ -12,8 +12,8 @@ func NewGame(width int, height int) (*Game) { |
|
|
|
game.Height = height |
|
|
|
game.Height = height |
|
|
|
game.Enemies = make(map[Position]*Enemy) |
|
|
|
game.Enemies = make(map[Position]*Enemy) |
|
|
|
game.Level = make(Map, height, height) |
|
|
|
game.Level = make(Map, height, height) |
|
|
|
game.Player = Enemy{20, Position{1,1}, 4} |
|
|
|
|
|
|
|
game.Paths = make(Paths, height, height) |
|
|
|
game.Paths = make(Paths, height, height) |
|
|
|
|
|
|
|
game.Player = Enemy{20, Position{1,1}, 4} |
|
|
|
|
|
|
|
|
|
|
|
return &game |
|
|
|
return &game |
|
|
|
} |
|
|
|
} |
|
|
|