Second Map, and sound effects
This commit is contained in:
@ -27,3 +27,7 @@ func linear2db(linear: float) -> float:
|
||||
if linear <= 0.0:
|
||||
return -80.0 # mute
|
||||
return 20.0 * (log(linear) / log(10.0))
|
||||
|
||||
func PauseAudio() ->void:
|
||||
get_node("AudioStreamPlayer2D").stop()
|
||||
get_node("AudioStreamPlayer2D2").stop()
|
||||
|
Reference in New Issue
Block a user