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”
1 Like
Thanks. Will look that up.
Does it automatically save data on a file?
yes, it writes the data into an XML file
OK, thanks.
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.