fixed lit thresholds
This commit is contained in:
@ -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() {
|
||||
|
@ -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))
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user