playlist now removes played scenes

This commit is contained in:
Derek
2025-03-01 16:11:20 -06:00
parent 3ab4160be6
commit dc7ecf83ee
11 changed files with 86 additions and 61 deletions

View File

@@ -1,4 +1,3 @@
@tool
extends Node
@export var generate_playlist_now = false
@@ -10,20 +9,6 @@ extends Node
@export var rounds_per_match : int = 3
@export var matches_per_year : int = 52
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if generate_playlist_now == true:
generate_playlist()
if load_playlist_from_file == true:
load_playlist()
func generate_playlist() -> void:
var playlist_name = only_valid_chars(GameGlobals.all_user_leaderboards[GameGlobals.user_id][GameGlobals.last_leaderboard_id])
var playlist = []