diff --git a/examples/platformer/main.go b/examples/platformer/main.go index fb3b31c4a68e7676eb54bf61e8a300cdbeea5cee..73974cd704194f08bdd55469d8093f9ea6d034ce 100644 --- a/examples/platformer/main.go +++ b/examples/platformer/main.go @@ -335,7 +335,7 @@ func run() { last = time.Now() // lerp the camera position towards the gopher - camPos = pixel.Lerp(camPos, phys.rect.Center(), 1-math.Pow(1.0/64, dt)) + camPos = pixel.Lerp(camPos, phys.rect.Center(), 1-math.Pow(1.0/128, dt)) cam := pixel.IM.Moved(-camPos) canvas.SetMatrix(cam)