Skip to content
Snippets Groups Projects
Commit 3d571046 authored by Azurlors's avatar Azurlors
Browse files

Bugfix droite gauche

parent 1d17f697
No related branches found
No related tags found
No related merge requests found
......@@ -48,16 +48,16 @@ public class Jeu implements Game{
comX = 0;
comZ = 0;
boolean Right = command.get(1); //gauche et droite sont inverses je sais pas pk
boolean Left = command.get(0);
boolean Right = command.get(0);
boolean Left = command.get(1);
boolean Jump = command.get(2);
if (Right) {
comX = -charac.getVitesseMax();
comX = charac.getVitesseMax();
}
else if (Left) {
comX = charac.getVitesseMax();
comX = -charac.getVitesseMax();
}
if (Jump) {
if (charac.getCoord().getZ() < coordSol.getZ())a = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment