C/C++ Code for Snake Game, with 3 lives & loading graphics

/* Description of the Snake Game C/C++ code: It deals with a snake game. In this game snake goes to eat different blobs that are randomly popping on screen/dash board & if it eats that successfully, then it becomes larger in
size & gains score. The player has the option of changing direction of the
snake by pressing left, right, top, down arrows for moving the snake in desired direction. This project was developed & compiled initially in Turbo C++ compiler & then with some modifications it was adapted to Microsoft Visual Studio, with some essential modifications*/

for(i=4;i<length;i++) //starts with 4 because it needs minimum 4 element to touch its own body { if(body[0].x==body[i].x&&body[0].y==body[i].y) { check++; //checks value increases as the coordinates of head is equal to any other body coordinate }

printf("\tWelcome to the mini Snake game.(press any key to continue)\n");

getch();

system("cls");

printf("\tGame Play Instructions:\n");

printf("\n-> Use arrow keys to move the snake.\n\n-> You will be provided food blobs at the several coordinates of the screen which you have to make your snake eat. Everytime you eat a food the length of the snake will be increased by 1 element and thus the score.\n\n-> Here you are provided with three lives. Your life will decrease as you hit the wall or snake's body.\n\n-> YOu can pause the game in its middle by pressing any key. To continue the paused game press any other key once again\n\n-> If you want to exit press esc. \n");

printf("\n\nPress any key to continue...");

if(getch()==27) exit(0);

}

void record(){

char plname[20],nplname[20],cha,c;

int i,j,px;

FILE *info;

info=fopen("record.txt","a+");

getch();

system("cls");

printf("Enter your name\n");

scanf("%[^\n]",plname);

//************************

for(j=0;plname[j]!='\0';j++){ //to convert the first letter after space to capital