pegchamp/Stages/Camera.gd

9 lines
173 B
GDScript3
Raw Normal View History

2021-09-08 08:27:14 +00:00
extends Camera2D
func _process(_delta):
var zoomlevel = clamp(Engine.time_scale, 0.5, 0.975)
zoom = lerp(zoom, Vector2(zoomlevel, zoomlevel), smoothing_speed / 200)