this is the part of the code isn't compiling. It will start and then stop when it gets here. I have a Char Map of [11][22] that is my board. What I'm trying to do is get the '*' to random generate, and act as the food for my snake.
srand(time(NULL));
int pellet=rand()%21;
while (GameRunning == true)
{
for (int pellet = rand(); pellet % Map[11][22]; pellet++)
{
cout << '*';
}
system("cls");
Aucun commentaire:
Enregistrer un commentaire