powerup system

This commit is contained in:
zoe 2021-10-05 21:55:34 +02:00
parent c8747328cf
commit 77ca16be36
149 changed files with 2472 additions and 331 deletions

View file

@ -2,7 +2,7 @@ extends Camera2D
func _process(_delta):
var zoomlevel = clamp(Engine.time_scale, 0.5, 0.975)
zoom = lerp(zoom, Vector2(zoomlevel, zoomlevel), smoothing_speed / 200)
if GameStats.camera_fx:
var zoomlevel = clamp(Engine.time_scale, 0.5, 0.975)
zoom = lerp(zoom, Vector2(zoomlevel, zoomlevel), smoothing_speed / 200)
else: zoom = Vector2(1, 1)