Hi guys. I'm just playing around with C++ and I'm trying to make a sort of virtual pet game. I know its not the best looking code but I'm trying. But as of right now I'm trying to be able to animate the game a little . For example , if a user decides to "pet" their "pet" I want the pets mouth to open from '_' to ^o^ like this:
() ()
('_') -> () ()
(^o^) and switch back and forth. I'm not sure how to do this I was thinking of using a For loop but I'm not sure. Can you guys help? Thanks so much!
Here's my code:
#include <iostream>
#include <cstring>
using namespace std;
void Greeting()
{
cout<<"===================================================";
cout<<"\t\t\t Welcome to Kayla's Kawaii Pet Game!";
cout<<"===================================================";
cout<<"\n";
Greeting();
cout<<"What's your name?: ";
cin>>name;
cout<<"Hello "<<name<< ", What would you like to name your Kawaii pet?: ";
cin>>tamaname;
cout<<"Okay! Here is your pet, "<<tamaname<<" ! ";
cout<<"\n";
PrintPet();
cout<<"\n";
cout<<"What would you like to do with " <<tamaname<< "?";
PetMenu();
cin>>userchoice;