merge changes

This commit is contained in:
anton.gurov
2019-11-05 12:43:06 +03:00
parent e9dec9ac0a
commit 284cdc5315
3 changed files with 31 additions and 4 deletions

View File

@ -6,6 +6,8 @@ import (
"math"
)
//fixme store separate FovMap, add method IsInMap to it
type FieldOfVision struct {
cosTable map[int]float64
sinTable map[int]float64

View File

@ -54,6 +54,7 @@ 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