aboutsummaryrefslogtreecommitdiff
path: root/entity.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-07-25 12:03:32 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-07-25 12:03:32 +0200
commita4db8814ccb2fc255bd909d8fa827ba23896322f (patch)
treeb78f1e42c51df56674986ddbb717a73d59d6a4d0 /entity.go
parent87563d8bbf70cba9443435113a8bddfcd39f611d (diff)
feat: Draw spawn target
Diffstat (limited to 'entity.go')
-rw-r--r--entity.go6
1 files changed, 3 insertions, 3 deletions
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
}