aboutsummaryrefslogtreecommitdiff
path: root/entity.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-07-07 09:39:29 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-07-07 09:39:29 +0200
commit2b05b9d8aa47f6cc9d768c6758f1cca4e8721a4c (patch)
tree17b59634ce20f42111e30cd199a77960a386008a /entity.go
parentb3e70bf4cf7e790fa8b5239c05b6c7b917f19635 (diff)
Regroup drawing
Diffstat (limited to 'entity.go')
-rw-r--r--entity.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/entity.go b/entity.go
index a9fd0ff..b784c04 100644
--- a/entity.go
+++ b/entity.go
@@ -24,12 +24,3 @@ func (e Entity) Bounds() physics.Rectangle {
Max: e.Position.Value.Add(e.Image.Value.Bounds().Size()),
}
}
-
-func Draw(screen *ebiten.Image, e *Entity) {
- if !e.Image.IsEnabled || !e.Position.IsEnabled {
- return
- }
- op := &ebiten.DrawImageOptions{}
- op.GeoM.Translate(float64(e.Position.Value.X), float64(e.Position.Value.Y))
- screen.DrawImage(e.Image.Value, op)
-}