slowing down mario
build rgb-board / build (push) Successful in 4m11s Details

main
Nathan Wagner 2 weeks ago
parent 5af72cd59b
commit 70bc20e621

@ -84,8 +84,8 @@ func (a *Animation) updateMarioPosition() {
a.mario.position.X = marioX
a.mario.position.Y = marioY
// Update angle to move along the ellipse
a.mario.angle += 0.1
// Update angle to move along the ellipse (slower by half)
a.mario.angle += 0.05 // Slow down Mario's movement by half
if a.mario.angle >= 2*math.Pi {
a.mario.angle -= 2 * math.Pi
}

Loading…
Cancel
Save