mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
8 lines
173 B
GDScript
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)
|