more checking rooms

This commit is contained in:
anton.gurov
2019-11-12 14:52:17 +03:00
parent 4bdb51d9e3
commit 7837051e80
13 changed files with 82 additions and 37 deletions

View File

@ -14,7 +14,7 @@ import (
var NotInViewError = errors.New("not in ViewPort")
type ViewPort struct {
*types.Rect
types.Rect
cameraCoords types.Coords
layer *Layer
Fov fov.Fov
@ -27,7 +27,7 @@ func NewViewPort(x, y, w, h int, layer *Layer) *ViewPort {
computedFov := precomputed_shade.NewPrecomputedShade(15)
computedFov.Init()
vp := ViewPort{
Rect: &types.Rect{x, y, w, h},
Rect: types.Rect{x, y, w, h},
layer: layer,
Fov: computedFov,
}