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

clean player.c et player.h

parent c2d4820b
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,6 @@ void hitBall()
if (player.isHitting)
{
castSingleRay(player.angle, &distanceWall, &distanceNet, &rxWall, &ryWall, &rxNet, &ryNet);
// printf("hit\n");
if (rxWall > MAP_WIDTH / 2)
{
......@@ -96,14 +95,8 @@ void hitBall()
ball.z = player.h;
ball.isHit = 1;
}
// printf("valid hit\n");
}
else
{
// printf("unvalid hit\n");
}
}
//}
}
void updateBall()
......
......@@ -12,9 +12,10 @@
#define HIT_RANGE 2
#define HIT_FORCE 10
#define MOVEMENT_SPEED 20
typedef struct player{
typedef struct player
{
float x;
float y;
float z;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment