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(matchWon);
|
||||||
|
engine.remove_uiElement(inputListP1);
|
||||||
|
|
||||||
//replacement des sprites
|
//replacement des sprites
|
||||||
objP1.translate(new Vector3f(-p1.getPosX(), -p1.getPosY()));
|
objP1.translate(new Vector3f(-p1.getPosX(), -p1.getPosY()));
|
||||||
@ -153,6 +154,8 @@ public class match {
|
|||||||
objP1.getShadow().translate(new Vector3f(0f,-p1.getPosY(),0));
|
objP1.getShadow().translate(new Vector3f(0f,-p1.getPosY(),0));
|
||||||
objP2.getShadow().translate(new Vector3f(0f,-p2.getPosY(),0));
|
objP2.getShadow().translate(new Vector3f(0f,-p2.getPosY(),0));
|
||||||
|
|
||||||
|
acCode = 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -397,21 +400,16 @@ public class match {
|
|||||||
case 21:
|
case 21:
|
||||||
try {
|
try {
|
||||||
handleThrows(p1, p2);
|
handleThrows(p1, p2);
|
||||||
|
|
||||||
} catch (IndexOutOfBoundsException e) {}
|
} catch (IndexOutOfBoundsException e) {}
|
||||||
try {
|
try {
|
||||||
handleHits(p1, p2, inputsP2);
|
handleHits(p1, p2, inputsP2);
|
||||||
|
} catch (IndexOutOfBoundsException e) {};
|
||||||
}catch (IndexOutOfBoundsException e) {};
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
handleThrows(p2,p1);
|
handleThrows(p2,p1);
|
||||||
} catch (IndexOutOfBoundsException e) {}
|
} catch (IndexOutOfBoundsException e) {}
|
||||||
try {
|
try {
|
||||||
|
|
||||||
handleHits(p2, p1, inputsP1);
|
handleHits(p2, p1, inputsP1);
|
||||||
}catch (IndexOutOfBoundsException e) {};
|
} catch (IndexOutOfBoundsException e) {};
|
||||||
acCode = 22;
|
acCode = 22;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user