Does Cocos2d-x have some sort of class that I can use to easily save and load player data such as score, level, experience, etc?
Maybe you need something like “CCUserDefault”
Thanks. Will look that up.
Does it automatically save data on a file?
yes, it writes the data into an XML file
So I need to use it like this?
int m_PlayerGold = CCUserDefault::sharedUserDefault( ) -> getIntegerForKey( "p_gold" );
yes, you are right!
Thanks a lot. You’re a big help.