refresh inputList every rounds
This commit is contained in:
parent
68cc275302
commit
ad6593bd00
@ -146,6 +146,7 @@ public class match {
|
||||
}
|
||||
|
||||
engine.remove_uiElement(matchWon);
|
||||
engine.remove_uiElement(inputListP1);
|
||||
|
||||
//replacement des sprites
|
||||
objP1.translate(new Vector3f(-p1.getPosX(), -p1.getPosY()));
|
||||
@ -153,6 +154,8 @@ public class match {
|
||||
objP1.getShadow().translate(new Vector3f(0f,-p1.getPosY(),0));
|
||||
objP2.getShadow().translate(new Vector3f(0f,-p2.getPosY(),0));
|
||||
|
||||
acCode = 0;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -397,21 +400,16 @@ public class match {
|
||||
case 21:
|
||||
try {
|
||||
handleThrows(p1, p2);
|
||||
|
||||
} catch (IndexOutOfBoundsException e) {}
|
||||
try {
|
||||
handleHits(p1, p2, inputsP2);
|
||||
|
||||
}catch (IndexOutOfBoundsException e) {};
|
||||
|
||||
} catch (IndexOutOfBoundsException e) {};
|
||||
try {
|
||||
|
||||
handleThrows(p2,p1);
|
||||
} catch (IndexOutOfBoundsException e) {}
|
||||
try {
|
||||
|
||||
handleHits(p2, p1, inputsP1);
|
||||
}catch (IndexOutOfBoundsException e) {};
|
||||
} catch (IndexOutOfBoundsException e) {};
|
||||
acCode = 22;
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user