diff options
Diffstat (limited to 'go/ui')
| -rw-r--r-- | go/ui/mapView.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/go/ui/mapView.go b/go/ui/mapView.go index 64501706..2016a60f 100644 --- a/go/ui/mapView.go +++ b/go/ui/mapView.go @@ -50,6 +50,7 @@ type MapView struct { func NewMapView(g game.State) *MapView { vw := &MapView{ + EventHandlersMap: NewEventHandlersMap(), gameState: g, scale: 1, tileHighlights: make(map[game.Position][]color.Color), @@ -252,6 +253,8 @@ func (vw *MapView) drawMapLayer(screen *ebiten.Image) { tileImg = vw.handleGate(x, y, op) case game.TileTypes.Tower: tileImg = vw.handleTower(x, y, op) + case game.TileTypes.Neutral: + tileImg = assets.GetTile("neutral") default: tileImg = assets.GetTile(tile.Raw) } |
