HOW ! Gameplay guide on first time playing the game..?

You can use a file, UserDefaults or Sqlite to name a few options.

You just need a flag that is “tutorial complete” So ANY of the above can do this.

  1. Reading from a file, there are several ways to do this:
string STRING;
	ifstream infile;
	infile.open ("names.txt");
        while(!infile.eof) // To get you all the lines.
        {
	        getline(infile,STRING); // Saves the line in STRING.
	        cout<<STRING; // Prints our STRING.
        }
	infile.close();
  1. UserDefaults: http://www.cocos2d-x.org/reference/native-cpp/V3.0alpha0/db/d94/classcocos2d_1_1_user_default.html#details

  2. SQLite: A simple Tutorial How to use SQLite in cocos2d-x ……(Tutorial by YUYE)

2 Likes