27

Free download game cooking academy 2 for pc. Welcome to the World Culinary Workshop!

Inside player() you call TRex(), and TRex() calls player(). You just have loops within loops.
TRex() shouldn't have a loop in it, which means it doesn't need a 'turn'. Also make sure to not call player.
Then you get back to the original player(), but the loop doesn't ask for a choice again, so you need to move the start of the while up a little. (to line 50).
The loop in player can be while(true), only ending via break when health is too low.
But, when the game is over, you call Entrance, which is going to make another game inside the game you are playing. Rather, simply have those conditions break the loop so that the function ends.
Then you get back to entrance, and it is done with so the program ends. You could make a loop in entrance that only continues while choice is 'Go'. Make sure to cin >> choice from within the loop, otherwise it can't update.
Something that is hiding these errors is that Player and TRex health is a global variable. Consider having the health's within player() and then pass the player's health as a reference variable to TRex.
  1. Dinosaur Game In Dev C 5
  2. Dinosaurs Game In Dev C++ With Source Code
  3. Dinosaur Games In Development

Dinosaur Game In Dev C 5

Dinosaur Game In Dev C++

Dinosaurs Game In Dev C++ With Source Code

Dinosaur Game In Dev C++

Dinosaur Games In Development

Jan 07, 2018  Beginner C Game Programming DirectX Snake Game Tutorial 14b - Duration: 42:34. ChiliTomatoNoodle 28,986 views. Apr 13, 2012  But, when the game is over, you call Entrance, which is going to make another game inside the game you are playing. Download full version free cooking games. Rather, simply have those conditions break the loop so that the function ends. Then you get back to entrance, and it is done with so the program ends. You could make a loop in entrance that only continues while choice is 'Go'.