Home > Back-end >  Implement pushing more levels, the part code is as follows, after completing the first level into th
Implement pushing more levels, the part code is as follows, after completing the first level into th

Time:10-03

Int main ()
{
Int map [14] [16].
For (int n=1; N <44; N++)
{
The use ();
Gameover ();
}
Printf (" gameover ");
return 0;
}
Void gameover ()
{
Int map [14] [16].
Int symbol;
for(int i=0; I <14; I++)
{
for(int j=0; J <16; J++)
{
If (map [I] [j].=52)
{
Printf (" Moving onto the next level ");
Symbol=1;
break;
}
}
If (symbol==1)
{
break;
}
}
return;
}
Void the use ()
{
int n;
Int map [14] [16].
ReadMap (map, n);
While (1)
{
PrintMap (map);
KeyDown (map);
system("cls");
}
system("pause");
return;
}
  • Related