This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user