ready to ecs

This commit is contained in:
anton.gurov
2019-10-31 18:33:37 +03:00
parent 2bb7cae632
commit fa3e3ee786
5 changed files with 43 additions and 15 deletions

View File

@ -53,8 +53,8 @@ func NewLevel(ctx util.ClientCtx, branch string, depth int) *Level {
Depth: depth,
Rect: types.NewRect(0,0, mapWidth, mapHeight),
}
l.Tiles = make([]*Tile, l.W*l.H)
ctx.Logger().Debug().Msgf("Generating level of branch %s depth %d", branch, depth)
return l
}