diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-07 09:39:29 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-07 09:39:29 +0200 |
| commit | 2b05b9d8aa47f6cc9d768c6758f1cca4e8721a4c (patch) | |
| tree | 17b59634ce20f42111e30cd199a77960a386008a /selection.go | |
| parent | b3e70bf4cf7e790fa8b5239c05b6c7b917f19635 (diff) | |
Regroup drawing
Diffstat (limited to 'selection.go')
| -rw-r--r-- | selection.go | 11 |
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) - } -} |
