Song select snap
The slow tail popped out a bit with quantized text coords
This commit is contained in:
parent
ad919e466b
commit
ee16b0d55c
|
@ -114,6 +114,9 @@ func _process(delta):
|
||||||
elif selected_song_delta < -0.5:
|
elif selected_song_delta < -0.5:
|
||||||
selected_song_delta += 1.0
|
selected_song_delta += 1.0
|
||||||
selected_song_vis -= 1
|
selected_song_vis -= 1
|
||||||
|
if abs(diff) < 0.02: # Snap
|
||||||
|
selected_song_delta = 0.0
|
||||||
|
selected_song_vis = selected_song
|
||||||
|
|
||||||
var g_diff = selected_genre - (selected_genre_vis + selected_genre_delta)
|
var g_diff = selected_genre - (selected_genre_vis + selected_genre_delta)
|
||||||
selected_genre_delta += ease_curve.interpolate(clamp(g_diff, -1, 1)) * 10 * delta
|
selected_genre_delta += ease_curve.interpolate(clamp(g_diff, -1, 1)) * 10 * delta
|
||||||
|
@ -123,6 +126,9 @@ func _process(delta):
|
||||||
elif selected_genre_delta < -0.5:
|
elif selected_genre_delta < -0.5:
|
||||||
selected_genre_delta += 1.0
|
selected_genre_delta += 1.0
|
||||||
selected_genre_vis -= 1
|
selected_genre_vis -= 1
|
||||||
|
if abs(g_diff) < 0.02: # Snap
|
||||||
|
selected_genre_delta = 0.0
|
||||||
|
selected_genre_vis = selected_genre
|
||||||
|
|
||||||
menu_mode_prev_fade_timer = max(0.0, menu_mode_prev_fade_timer - delta)
|
menu_mode_prev_fade_timer = max(0.0, menu_mode_prev_fade_timer - delta)
|
||||||
update()
|
update()
|
||||||
|
|
Loading…
Reference in New Issue