Skip to content
Snippets Groups Projects
Commit 8ebf3c47 authored by Taha Belkhiri's avatar Taha Belkhiri
Browse files

modification snakes

parent 2ff3a5b1
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -210,7 +210,7 @@ int main(int argc, char** argv) { ...@@ -210,7 +210,7 @@ int main(int argc, char** argv) {
for (int i = 0; i < NB_SNAKES; i++) { for (int i = 0; i < NB_SNAKES; i++) {
// random int between 0 and WIDTH // random int between 0 and WIDTH
snakeList[i] = init_snake(rand()%screen.w, rand()%screen.h, rand()%200, rand()%50); snakeList[i] = init_snake(rand()%screen.w/2, rand()%screen.h/2, rand()%200, rand()%50);
} }
for (int i=0; i< 50; i++){ for (int i=0; i< 50; i++){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment