Leaderboard

This commit is contained in:
2024-08-09 14:55:45 +08:00
parent 40b0f2e176
commit 8390fb2794
9 changed files with 191 additions and 3 deletions

View File

@ -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())
{