1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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); } }