From 31f3ecddd19050cb7301be8f006950b67b6d30f2 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Tue, 10 Jun 2025 20:09:39 +0000 Subject: [PATCH] fixing types --- animationMario.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/animationMario.go b/animationMario.go index 588b931..9d63278 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 := centerX + a.mario.a*math.Cos(t) - marioY := centerY + a.mario.b*math.Sin(t) + marioX := float64(centerX) + a.mario.a*math.Cos(t) + marioY := float64(centerY) + a.mario.b*math.Sin(t) // Update angle to move along the ellipse a.mario.angle += 0.1 // Adjust speed as needed