From a4db8814ccb2fc255bd909d8fa827ba23896322f Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Fri, 25 Jul 2025 12:03:32 +0200 Subject: feat: Draw spawn target --- entity.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'entity.go') diff --git a/entity.go b/entity.go index 2b120f5..4657be7 100644 --- a/entity.go +++ b/entity.go @@ -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 } -- cgit v1.3