reflection goes out of the window
This commit is contained in:
@ -3,6 +3,7 @@ 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"
|
||||
"lab.zaar.be/thefish/alchemyst-go/engine/gamestate"
|
||||
@ -94,7 +95,7 @@ func (vp *ViewPort) Listen(state gamestate.GameState) {
|
||||
|
||||
func (vp *ViewPort) Render(state *gamestate.GameState) {
|
||||
|
||||
playerCoords := state.Controller.GetComponent(state.Player, types.Coords{}.TypeOf()).(types.Coords)
|
||||
playerCoords := state.Controller.GetComponent(state.Player, ecs.CoordsComponent).(types.Coords)
|
||||
|
||||
vp.Move(state, playerCoords)
|
||||
|
||||
|
Reference in New Issue
Block a user