adjust camera movement in platformer example

This commit is contained in:
faiface 2017-04-22 14:20:51 +02:00
parent 080735510c
commit c028b66b68
1 changed files with 1 additions and 1 deletions

View File

@ -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)