aboutsummaryrefslogtreecommitdiff
path: root/selection.go
diff options
context:
space:
mode:
Diffstat (limited to 'selection.go')
-rw-r--r--selection.go11
1 files changed, 0 insertions, 11 deletions
diff --git a/selection.go b/selection.go
index ef270c6..496d7f6 100644
--- a/selection.go
+++ b/selection.go
@@ -38,14 +38,3 @@ func (e *Entity) SelectSingle(cursor physics.Point, canBeSelected bool) bool {
slog.Info("entity selected", slog.String("position", e.Position.Value.String()))
return true
}
-
-func DrawSelection(screen *ebiten.Image, e *Entity) {
- if !e.Image.IsEnabled || !e.Position.IsEnabled || !e.Selection.IsEnabled {
- return
- }
- if e.Selection.Value.IsSelected {
- opt := &ebiten.DrawImageOptions{}
- opt.GeoM.Translate(float64(e.Position.Value.X-SELECTION_HALO_WIDTH/2), float64(e.Position.Value.Y-SELECTION_HALO_WIDTH/2))
- screen.DrawImage(e.Selection.Value.Halo, opt)
- }
-}