A Go version of the https://lcthw.dev/learn-code-the-hard-way/curseyou-python-rogue that makes a tiny Rogue in Go.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
432 B
17 lines
432 B
package main
|
|
|
|
func (game *Game) NewMap() {
|
|
game.Level = Map{
|
|
[]rune("#################"),
|
|
[]rune("#.#...#.........#"),
|
|
[]rune("#.#.###.#.###.#.#"),
|
|
[]rune("#.#.....#...#.#.#"),
|
|
[]rune("#.#.#######.#.###"),
|
|
[]rune("#.#...#...#.#...#"),
|
|
[]rune("#.###.###...###.#"),
|
|
[]rune("#...#.......#...#"),
|
|
[]rune("#.#.#########...#"),
|
|
[]rune("#.#.............#"),
|
|
[]rune("#################"),
|
|
}
|
|
}
|
|
|