Skip to content
Snippets Groups Projects
Commit ccabaabf authored by Louis MALTERRE's avatar Louis MALTERRE
Browse files

tiens louis ca marche LM

parent 880354fb
No related branches found
No related tags found
No related merge requests found
......@@ -147,16 +147,11 @@ public class Jeu implements Game{
}
private void animation(Boolean Attack,Boolean Right,Boolean Left){
if (Attack) {
if (Attack && !characterAttacking) {
movement = "character_attack";
characterAttacking = true;
}
//characterNotMoving = false;
if (!characterAttacking){ //animation d'attaque prioritaire
if (gameCharacter.getAlpha() == 0) movement = "character_jump"; // pour savoir si il jump ou non
else{
......@@ -170,10 +165,7 @@ public class Jeu implements Game{
}
}
}
//si on a change de mouvement, le jeu doit redemarrer a la premiere frame correspondante
//System.out.println(numberOfMovement);
if (previousMovement != movement){numberOfMovement = 1;nbBeforeFramechgt = nbIterationPerFrame;}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment