From 78ca42a0b4bd08ace4b062bd9c82be95197c8789 Mon Sep 17 00:00:00 2001 From: B00M360 <163397165+B00M360@users.noreply.github.com> Date: Mon, 23 Feb 2026 09:51:23 +0100 Subject: [PATCH 1/2] git ignor --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 466e248..d3e245c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -out/ \ No newline at end of file +out/ +/out From 06a380914887c98196d4167b10e61607d21d4e67 Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 23 Feb 2026 09:58:09 +0100 Subject: [PATCH 2/2] ajout score ajout score --- src/Jeu.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Jeu.java b/src/Jeu.java index 94abaf6..08b8756 100644 --- a/src/Jeu.java +++ b/src/Jeu.java @@ -47,12 +47,13 @@ public class Jeu implements KeyListener, ActionListener{ //------------------------------------------------------------------------- public Jeu(){ // Gestion du score : a réactiver en fin de TP, inutile au début - /* + labScore = new JLabel(); + labScore.setForeground(Color.WHITE); labScore.setText("

score : 0

"); labScore.setBounds(20, 0, 200, 50); ecran.add(labScore); - */ + ecran.traiterBoucleAnimation(); } @@ -148,7 +149,8 @@ public class Jeu implements KeyListener, ActionListener{ @Override public void actionPerformed(ActionEvent e) { ecran.traiterBoucleAnimation(); - + score = score + 0.4; + labScore.setText("

score : " + (int)score + "

"); if (demiCercleArriere.EnCollision(lili.SegCourant)) RecommencerPartie(); }