aboutsummaryrefslogtreecommitdiff
path: root/entity.go
diff options
context:
space:
mode:
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)
-}