Files
godot-4-key-rhythm-game/resource_type/music.gd
2026-01-25 03:26:34 +08:00

13 lines
320 B
GDScript

## Class that packs an [AudioStream] with additional information
## to sync beats to it.
class_name Music extends Resource
## Music AudioStream.
@export var stream: AudioStream = null
## Music offset in seconds.
@export var offset: float = 0.0
## BPM data to sync to the music.
@export var tempo: Tempo = Tempo.new()