automated snapshot

This commit is contained in:
sumi
2025-12-26 13:16:33 -06:00
parent 908e25f900
commit 6ab7c8d7e1
3 changed files with 15 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ type Actor struct {
func (a *Actor) Draw() {
v := a.field.Get(a.position.X, a.position.Y)
rad := rl.Remap(v, 0, 1, 0, 10*math.Pi)
rad := rl.Remap(v, 0, 1, 0, 5*math.Pi)
nextPosition := rl.Vector2{X: a.position.X + a.stepSize*float32(math.Cos(float64(rad))), Y: a.position.Y + a.stepSize*float32(math.Sin(float64(rad)))}
rl.DrawLineV(a.position, nextPosition, a.color)
a.position = nextPosition