Game Loop Examples

Here’s the Game ‘loop’ I came up with in the challenge for this lesson.

image

image
Made on draw.io

2 Likes

I had a couple of simple game loops in mind one with less detail and one with more which also had the game loop back on itself to give further instructions if the answer is wrong but there is more lives left or go ahead and pick a new word/ increase the difficulty if the player is correct in her guess. However I settled for the more simple version shown below

1 Like

image

this is the full loop

I misunderstood lol and made a quick while loop in notepad;
FString HiddenWord = “paint”;
std::cin >> Guess;

while (HiddenWord != Guess)

{
std::cin >> Guess;

}

if (HiddenWord == Guess)

{
std::cout << TEXT(“Well Done!”);

}

I made the game as if in each word “game” you have 3 guess.

2 Likes

Here’s my loop for Bulls and Cows :slight_smile:

1 Like

This is my loop.
BullCowsScreen1

Forgot my penmenship sucks.

The condition for checking if the incorrect guesses is fewer than 5 has the yes/no conditions reversed.

This is my version of the Bull Cows basic game loop.

I used Google Drawings.

Powerpoint is so much better than MSpaint for a workflow. Found that out the hard way…

I don’t think I have any flowchart making tools on my PC, but I used Clip Studio Paint to create a rough timeline of the game flow as it is. I should get back not only to coding, but drawing again too - since I know that’s an important skill for the future of game development.

1 Like

Here is my basic game loop.