mirror of
https://github.com/mvvasilev/last_light.git
synced 2025-04-19 20:59:51 +03:00
16 lines
252 B
Go
16 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
|
||
|
}
|