Adaptive music and music 👍

This commit is contained in:
Rendo 2025-07-21 14:28:40 +05:00
commit dcffb97a3d
48 changed files with 603 additions and 24 deletions

View file

@ -0,0 +1,12 @@
using Godot;
using System;
public partial class ScalableAudioPlayer : AudioStreamPlayer
{
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
if(PitchScale != (float)Engine.TimeScale)
PitchScale = (float)Engine.TimeScale * (float)Engine.TimeScale;
}
}