last_light/game/world/generate_empty_map.go

14 lines
299 B
Go
Raw Normal View History

2024-05-06 18:59:14 +03:00
package world
2024-05-21 23:08:51 +03:00
import "github.com/gdamore/tcell/v2"
2024-05-06 18:59:14 +03:00
2024-05-21 23:08:51 +03:00
func CreateEmptyDungeonLevel(width, height int) *BasicMap {
2024-05-06 18:59:14 +03:00
tiles := make([][]Tile, height)
for h := range height {
tiles[h] = make([]Tile, width)
}
2024-05-21 23:08:51 +03:00
return CreateBasicMap(tiles, tcell.StyleDefault.Foreground(tcell.ColorLightSlateGrey))
2024-05-06 18:59:14 +03:00
}