cleanup todo
This commit is contained in:
@ -107,13 +107,13 @@ public class match {
|
||||
timer = 99;
|
||||
inputsP1 = new InputBuffer(inputBufferSize);
|
||||
inputsP2 = new InputBuffer(inputBufferSize);
|
||||
p1.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
|
||||
p1.setPos(-750, groundLevel);
|
||||
p2.setPos((int) (750 - objP2.getWidth() * objP2.getScalingFactor()), groundLevel);
|
||||
p1.setCurrentHP(p1.getMaxHP());
|
||||
p2.setCurrentHP(p2.getMaxHP());
|
||||
objP1.translate(new Vector3f(p1.getPosX(),p1.getPosY(),0));
|
||||
objP2.translate(new Vector3f(p2.getPosX(),p2.getPosY(),0));
|
||||
// TODO meilleur implémentation possible
|
||||
|
||||
objP1.getShadow().translate(new Vector3f(0f,p1.getPosY(),0));
|
||||
objP2.getShadow().translate(new Vector3f(0f,p2.getPosY(),0));
|
||||
// Crée l'InputList
|
||||
@ -154,7 +154,6 @@ public class match {
|
||||
/**
|
||||
* Ends the match.
|
||||
* Used for playing animations and such.
|
||||
* TODO : Implement this once we know what to do.
|
||||
*/
|
||||
private static void endMatch() {
|
||||
String victoryTxt = roundsWonP1 > roundsWonP2 ? "P1 won the match" : "P2 won the match";
|
||||
@ -171,6 +170,8 @@ public class match {
|
||||
|
||||
engine.setRunning(false);
|
||||
}
|
||||
|
||||
|
||||
public static void parse() throws FileNotFoundException {
|
||||
|
||||
JSONParser jsonP = new JSONParser();
|
||||
|
Reference in New Issue
Block a user