goofy
build rgb-board / build (push) Successful in 4m1s Details

main
Nathan Wagner 3 weeks ago
parent 31f3ecddd1
commit 794f8ce0d5

@ -64,8 +64,8 @@ func (a *Animation) updateMarioPosition() {
// Calculate new position using parametric ellipse equations
t := a.mario.angle
marioX := float64(centerX) + a.mario.a*math.Cos(t)
marioY := float64(centerY) + a.mario.b*math.Sin(t)
marioX := int(float64(centerX) + math.Round(a.mario.a*math.Cos(t)))
marioY := int(float64(centerY) + math.Round(a.mario.b*math.Sin(t)))
// Update angle to move along the ellipse
a.mario.angle += 0.1 // Adjust speed as needed

Loading…
Cancel
Save