diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-08-26 10:51:49 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-08-26 10:51:49 +0200 |
| commit | bfd7f2ed0499f8285c41cf18c3a3cb16a08a95f5 (patch) | |
| tree | 9c982a7ffce5c72c46b4985f51b05bd0bcb2dde1 /person.go | |
| parent | 4d03ba264a956734f067915224bff63ee398b73e (diff) | |
refactor: Use person image size
Diffstat (limited to 'person.go')
| -rw-r--r-- | person.go | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -32,14 +32,6 @@ func (p Person) Image() *ebiten.Image { return p.image } -func (p Person) Size() Vec { - if p.IsSelected { - return Vec{X: p.size.X + 2, Y: p.size.Y + 2} - } else { - return p.size - } -} - func (p Person) Bounds() Rectangle { return Rectangle{Vec{p.Position.X - p.size.X/2, p.Position.Y - p.size.Y/2}, Vec{p.Position.X + p.size.X/2, p.Position.Y + p.size.Y/2}} } |
