ClockItem.gd 227 B

1234567
  1. extends PowerUpItem
  2. func collect_item(_player: Player) -> void:
  3. AudioManager.play_sfx("clock_get", global_position)
  4. $Label/AnimationPlayer.play("Appear")
  5. Global.time = clamp(Global.time + 100, 0, 999)
  6. Global.score += 1000