From 794f8ce0d5049596e4e789fbf359909bc799567b Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Tue, 10 Jun 2025 20:26:59 +0000 Subject: [PATCH] goofy --- animationMario.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/animationMario.go b/animationMario.go index 9d63278..68bed56 100644 --- a/animationMario.go +++ b/animationMario.go @@ -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