pegchamp/Stages/Camera.gd
2021-09-08 10:27:14 +02:00

8 lines
173 B
GDScript

extends Camera2D
func _process(_delta):
var zoomlevel = clamp(Engine.time_scale, 0.5, 0.975)
zoom = lerp(zoom, Vector2(zoomlevel, zoomlevel), smoothing_speed / 200)