Skip to content
Snippets Groups Projects
Commit 5fb0ae53 authored by suck5u's avatar suck5u
Browse files

Correction de l'aléatoire pour l'apparition des ennemis

parent 51a3bbb3
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
void init_enemy(enemy_t *enemy)
{
srand(time(NULL));
int random = rand()%4+0;
if (random == 1)
{
......
......@@ -23,8 +23,10 @@ int main(void)
world_t world;
SDL_Window *window; // Déclaration de la fenêtre
SDL_Renderer *renderer;
srand(time(NULL));
double time;
// Initialisation de la SDL
if(SDL_Init(SDL_INIT_VIDEO) < 0)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment