mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
powerup system
This commit is contained in:
parent
c8747328cf
commit
77ca16be36
149 changed files with 2472 additions and 331 deletions
|
|
@ -33,14 +33,15 @@ func bouncy():
|
|||
|
||||
# below is the slowmo stuff
|
||||
func _on_Area2D_body_entered(_body):
|
||||
Engine.time_scale = clamp(Engine.time_scale * 0.25, 0.1, 1)
|
||||
$SlowmoTimer.start()
|
||||
if GameStats.camera_fx:
|
||||
Engine.time_scale = clamp(Engine.time_scale * 0.25, 0.1, 1)
|
||||
$SlowmoTimer.start()
|
||||
|
||||
func _on_Area2D_body_exited(_body):
|
||||
Engine.time_scale = 1
|
||||
|
||||
func _on_LastPegCollision_body_entered(_body):
|
||||
if GameStats.pinks_left <= 1:
|
||||
if GameStats.pinks_left <= 1 && GameStats.camera_fx:
|
||||
Engine.time_scale = clamp(Engine.time_scale * 0.15, 0.1, 1)
|
||||
$SlowmoTimer.start()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue