Added a score system
This commit is contained in:
1 parent
bee846c3ba
commit
87bbaafb75
5 files changed
+70
-1
No files matched your search
@@ -0,0 +1,12 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class ScoreText : Control {
|
||||
public override void _Process(double delta) {
|
||||
Label ScoreText = GetNode<Label>("ScoreLabel");
|
||||
Label HighScoreText = GetNode<Label>("HighScoreLabel");
|
||||
|
||||
ScoreText.Text = "Score: " + Globals.Score;
|
||||
HighScoreText.Text = "High Score: " + Globals.HighScore;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user