mirror of
https://github.com/mvvasilev/last_light.git
synced 2025-04-19 12:49:52 +03:00
15 lines
252 B
Go
15 lines
252 B
Go
package world
|
|
|
|
func CreateEmptyDungeonLevel(width, height int) *EmptyDungeonMap {
|
|
m := new(EmptyDungeonMap)
|
|
|
|
tiles := make([][]Tile, height)
|
|
|
|
for h := range height {
|
|
tiles[h] = make([]Tile, width)
|
|
}
|
|
|
|
m.level = CreateBasicMap(tiles)
|
|
|
|
return m
|
|
}
|