fixed lit thresholds

This commit is contained in:
anton.gurov
2019-11-07 13:30:37 +03:00
parent dd2e68a8e8
commit e9e6160f9e
6 changed files with 61 additions and 39 deletions

View File

@ -8,6 +8,7 @@ import (
)
type MainWindow struct {
*types.Rect
ctx util.ClientCtx
layers map[string]types.Renderable
}
@ -52,6 +53,7 @@ func (mw *MainWindow) Open() {
config.FontSize,
),
)
mw.Rect = types.NewRect(0,0, config.MainWindowSizeX, config.MainWindowSizeY)
}
func (mw *MainWindow) Close() {

View File

@ -105,7 +105,7 @@ func (vp *ViewPort) Render(state *gamestate.GameState) {
vp.Fov.ComputeFov(state.Level, playerCoords, vp.TorchRadius)
}
vp.layer.ClearArea(0, 7, 40, 1)
vp.layer.ClearArea(0, 7, 20, 1)
vp.layer.Print(0,7, fmt.Sprintf("pcds: %v", playerCoords))