Premier fix

This commit is contained in:
Antoine 2021-06-10 15:20:20 +02:00
parent 6028c8e965
commit 50a32512b7

View File

@ -41,7 +41,7 @@ public class match {
/**
* the level of the "ground", used to determine if a character is in the air or not.
*/
private static final int groundLevel = 1700;
private static final int groundLevel = -400;
private static int timer;
private static InputBuffer inputsP1, inputsP2;
@ -70,9 +70,9 @@ public class match {
inputsP1 = new InputBuffer(inputBufferSize);
inputsP2 = new InputBuffer(inputBufferSize);
p1.setPos(-750, groundLevel); //TODO : change to better values if needed
p2.setPos(-750, groundLevel); //TODO : change to better values if needed
p2.setPos((int) (750 - objP2.getWidth() * objP2.getScalingFactor()), groundLevel); //TODO : change to better values if needed
objP1.translate(new Vector3f(p1.getPosX(),p1.getPosY(),0));
objP1.translate(new Vector3f(p2.getPosX(),p2.getPosY(),0));
objP2.translate(new Vector3f(p2.getPosX(),p2.getPosY(),0));
}
/**