merge changes
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user