summaryrefslogtreecommitdiffstats
path: root/Robofactor/Score.pde
diff options
context:
space:
mode:
Diffstat (limited to 'Robofactor/Score.pde')
-rw-r--r--Robofactor/Score.pde19
1 files changed, 19 insertions, 0 deletions
diff --git a/Robofactor/Score.pde b/Robofactor/Score.pde
new file mode 100644
index 0000000..4e9be74
--- /dev/null
+++ b/Robofactor/Score.pde
@@ -0,0 +1,19 @@
+public class Score{
+ //Variables
+ private int score;
+
+ //Fonctions
+ Score(){
+ score = 0;
+ }
+
+ void augmenter(int augmentation){
+ score+=augmentation;
+ }
+
+ void afficher(int x, int y){
+ fill(0);
+ text(score, x, y);
+ }
+}
+