Skip to content
Snippets Groups Projects
Commit 55dbb8e6 authored by belkhiritaha's avatar belkhiritaha
Browse files

fix des spawns de la balle

parent 7b853fc6
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,8 @@ int trajectoireAntoine[NUMBERPOINT_TRAJEC][2];
void initBall()
{
ball.x = (rand()%(MAP_WIDTH/2)) * BLOCK_SIZE;
ball.y = (rand()% (MAP_HEIGHT)) * BLOCK_SIZE;
ball.x = (rand()%(MAP_WIDTH/2)) * BLOCK_SIZE + BLOCK_SIZE;
ball.y = (rand()% (MAP_HEIGHT - 2)) * BLOCK_SIZE + BLOCK_SIZE;
ball.z = player.h / BLOCK_SIZE;
ball.h = 0.5 * BLOCK_SIZE;
ball.w = 0.5 * BLOCK_SIZE;
......
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