diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-25 12:03:32 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2025-07-25 12:03:32 +0200 |
| commit | a4db8814ccb2fc255bd909d8fa827ba23896322f (patch) | |
| tree | b78f1e42c51df56674986ddbb717a73d59d6a4d0 /entity.go | |
| parent | 87563d8bbf70cba9443435113a8bddfcd39f611d (diff) | |
feat: Draw spawn target
Diffstat (limited to 'entity.go')
| -rw-r--r-- | entity.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -48,7 +48,7 @@ func (b EntityBuilder) WithImage(image *ebiten.Image) EntityBuilder { return b } -var red = color.RGBA{0xff, 0x00, 0x00, 0xff} +var Red = color.RGBA{0xff, 0x00, 0x00, 0xff} func (b EntityBuilder) WithSelection(haloKind string, priority selection.Priority) EntityBuilder { b.entity.Selection = ecs.C(selection.Selection{ @@ -58,9 +58,9 @@ func (b EntityBuilder) WithSelection(haloKind string, priority selection.Priorit }) switch haloKind { case "round": - b.entity.Selection.Value.Halo = NewStrokeCircleImage(110, selection.HALO_WIDTH, red) + b.entity.Selection.Value.Halo = NewStrokeCircleImage(110, selection.HaloWidth, Red) case "square": - b.entity.Selection.Value.Halo = NewStrokeRectangleImage(physics.Point{X: 110, Y: 110}, selection.HALO_WIDTH, red) + b.entity.Selection.Value.Halo = NewStrokeRectangleImage(physics.Point{X: 110, Y: 110}, selection.HaloWidth, Red) } return b } |
