aboutsummaryrefslogtreecommitdiff
path: root/entity.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2023-09-19 06:47:50 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2023-09-19 06:48:50 +0200
commit0305cd01f8438d2c23033958120e61dff4fd2b1b (patch)
tree41beb17a71d881f162aaddcd9d721cd39aac6df3 /entity.go
parentdc17461910194815ff9b329f386f17d6218a5853 (diff)
fix: Display selection rect above all entities
Diffstat (limited to 'entity.go')
-rw-r--r--entity.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/entity.go b/entity.go
index 6066772..75c1604 100644
--- a/entity.go
+++ b/entity.go
@@ -29,11 +29,6 @@ func Draw(screen *ebiten.Image, e *Entity) {
if e.Image.IsEnabled && e.Position.IsEnabled {
op := &ebiten.DrawImageOptions{}
op.GeoM.Translate(float64(e.Position.Value.X), float64(e.Position.Value.Y))
- if e.Selection.IsEnabled && e.Selection.Value.IsSelected {
- op.GeoM.Translate(-10, -10)
- screen.DrawImage(e.Selection.Value.SelectedImage, op)
- } else {
- screen.DrawImage(e.Image.Value, op)
- }
+ screen.DrawImage(e.Image.Value, op)
}
}