Skip to content
Snippets Groups Projects
Commit c2d4820b authored by antoinemeyer5's avatar antoinemeyer5
Browse files

suppression d'un affichage de taha

parent 3a18f0ff
No related branches found
No related tags found
No related merge requests found
......@@ -114,18 +114,6 @@ void updateBall()
{
// landingPoint est déjà / BLOCK_SIZE de base
ball.z = lagrangeInterpolation(ball.x / BLOCK_SIZE, lastHitPoint[0] / BLOCK_SIZE, lastHitPoint[1] / BLOCK_SIZE, 15, 2 * player.h / BLOCK_SIZE, landingPoint[0], 0);
if (ball.z > 0)
{
/*printf("param. lagrange : xp=%f, xd=%d, yd=%d, xf=%d, yf=%d, xt=%d, yt=%d\n",
ball.x / BLOCK_SIZE,
lastHitPoint[0] / BLOCK_SIZE,
lastHitPoint[1] / BLOCK_SIZE,
15,
2 * player.h / BLOCK_SIZE,
landingPoint[0],
0);
printf("ballZ: %f\n", ball.z);*/
}
}
if ((int)ball.z == 0)
......
......@@ -861,10 +861,10 @@ void drawBall()
ballAngle += 2 * pi;
}
char str[10];
int drawBallY = (3 * screenDimension.h / 4 + player.viewAngle) - rect.h / 5 + player.h / BLOCK_SIZE - tan(ballViewAngle) * ballDistance;
sprintf(str, "%d", drawBallY);
drawString(str, screenDimension.w - 300, 100, 100, 50, 255, 255, 255, 255);
//char str[10];
//int drawBallY = (3 * screenDimension.h / 4 + player.viewAngle) - rect.h / 5 + player.h / BLOCK_SIZE - tan(ballViewAngle) * ballDistance;
//sprintf(str, "%d", drawBallY);
//drawString(str, screenDimension.w - 300, 100, 100, 50, 255, 255, 255, 255);
// if (angleMax > 2*pi) angleMax -= 2*pi;
// printf("is playing in range %d\n", isAngleInRange(ballAngle, angleMin, angleMax));
......@@ -1019,7 +1019,6 @@ void drawInfosBall()
}
void drawHub(){
drawFPS();
drawInfosPlayer();
drawInfosBall();
}
......@@ -1046,6 +1045,7 @@ void drawGame()
}
drawMap2D(map);
drawRacket();
drawFPS();
//affiche le hub
if(showHub){
drawHub();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment