From c028b66b68bb37be608f8ad3bf47bf1f253c2f0c Mon Sep 17 00:00:00 2001 From: faiface Date: Sat, 22 Apr 2017 14:20:51 +0200 Subject: [PATCH] adjust camera movement in platformer example --- examples/platformer/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/platformer/main.go b/examples/platformer/main.go index fb3b31c..73974cd 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)