move to terrain render system
This commit is contained in:
@ -2,7 +2,6 @@ package mainwindow
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"lab.zaar.be/thefish/alchemyst-go/engine/ecs"
|
||||
"lab.zaar.be/thefish/alchemyst-go/engine/fov"
|
||||
"lab.zaar.be/thefish/alchemyst-go/engine/fov/precomputed_shade"
|
||||
@ -40,7 +39,7 @@ func NewViewPort(x, y, w, h int, layer *Layer) *ViewPort {
|
||||
|
||||
func (vp *ViewPort) Close() {
|
||||
vp.animateTiles.Stop()
|
||||
vp.animateTiles = nil //free pointer to ticker
|
||||
vp.animateTiles = nil //zero pointer to ticker
|
||||
}
|
||||
|
||||
func (vp *ViewPort) Move(state *gamestate.GameState, newCoords types.Coords) {
|
||||
@ -124,6 +123,7 @@ func (vp *ViewPort) Render(state *gamestate.GameState) {
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
//mobs
|
||||
pc, err := vp.ToVPCoords(playerCoords)
|
||||
_ = pc
|
||||
@ -134,6 +134,7 @@ func (vp *ViewPort) Render(state *gamestate.GameState) {
|
||||
//mw.GetLayer("base").WithColor("white").Put(42, 10, "B")
|
||||
//mw.GetLayer("overlay").WithColor("white").Put(59, 10, "O")
|
||||
}
|
||||
*/
|
||||
|
||||
//redraw = true
|
||||
redraw = false
|
||||
|
Reference in New Issue
Block a user