✨ Leaderboard
This commit is contained in:
@ -8,6 +8,7 @@ public partial class World : Node2D
|
||||
[Export] public PackedScene PlayerScene;
|
||||
|
||||
[Export] public int RoundCount = 1;
|
||||
[Export] public int RoundTotalCount = 20;
|
||||
[Export] public double RoundDuration = 60;
|
||||
[Export] public double RoundProgress;
|
||||
[Export] public double RoundTimeLeft;
|
||||
@ -106,6 +107,12 @@ public partial class World : Node2D
|
||||
|
||||
private void NewRound()
|
||||
{
|
||||
if (RoundCount >= RoundTotalCount)
|
||||
{
|
||||
// TODO End this game
|
||||
return;
|
||||
}
|
||||
|
||||
RoundCount++;
|
||||
foreach (var child in GetChildren())
|
||||
{
|
||||
|
Reference in New Issue
Block a user