Merge branch 'main' of https://titi.koxi.nl/blodat/projet-dev
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1 +1,2 @@
|
||||
out/
|
||||
out/
|
||||
/out
|
||||
|
||||
@@ -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("<html><h3>score : 0</h3></html>");
|
||||
labScore.setBounds(20, 0, 200, 50);
|
||||
ecran.add(labScore);
|
||||
*/
|
||||
|
||||
ecran.traiterBoucleAnimation();
|
||||
}
|
||||
|
||||
@@ -148,6 +149,8 @@ public class Jeu implements KeyListener, ActionListener{
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
ecran.traiterBoucleAnimation();
|
||||
score = score + 0.4;
|
||||
labScore.setText("<html><h3>score : " + (int)score + "</h3></html>");
|
||||
|
||||
demiCercleArriere.ResterDansLigne(lili);
|
||||
demiCercleAvant.ResterDansLigne(lili);
|
||||
|
||||
Reference in New Issue
Block a user