third level + km/h display

This commit is contained in:
Taevas 2025-02-23 14:27:35 +01:00
parent 203696e022
commit c19d1dffcb
27 changed files with 713 additions and 40 deletions

View file

@ -1,5 +1,7 @@
extends Node3D
var velocity: float = 0.0
var rings_count = 72727
var finished_rings_count = 0
var rings: Array[Node] = []
@ -30,7 +32,7 @@ func do_we_end_yet():
func _process(delta: float) -> void:
var sphere = $Player/Sphere
var velocity: float = abs(sphere.linear_velocity.x) + abs(sphere.linear_velocity.y)
velocity = abs(sphere.linear_velocity.x) + abs(sphere.linear_velocity.y)
var instruments_needed = floor(velocity / 8)
var instruments_playing = stream_players.filter(func(p: AudioStreamPlayer): return p.volume_db > -50)