The question is simple data storage, that is, a small amount of simple data storage, a large amount of complex data should use SQLite. The cocos2d-x provides the appropriate method to store simple data [cpp] CCUserDefault: sharedUserDefault ()-> setStringForKey ("name", "zhycheng"); CCUserDefault: sharedUserDefault () -> setBoolForKey ("BOOL", true); CCUserDefault: sharedUserDefault ()-> setDoubleForKey ("DOUBLE", 2.6); CCUserDefault: sharedUserDefault () -> setFloatForKey ("FLOAT", 1.2f); CCUserDefault: sharedUserDefault ()-> setIntegerForKey ("INT", 3); CCUserDefault: sharedUserDefault ()-> se TStringForKey ("name", "zhycheng"); CCUserDefault: sharedUserDefault ()-> setBoolForKey ("BOOL", true); CCUserDefault: sharedUserDefault () -> setDoubleForKey ("DOUBLE", 2.6); CCUserDefault: sharedUserDefault ()-> setFloatForKey ("FLOAT", 1.2f); CCUserDefault: sharedUserDefault () -> setIntegerForKey ("INT", 3); the basic data is stored here, and the corresponding get method is used to obtain the data. [Cpp] CCLog ("% s", CCUserDefault: sharedUserDefault ()-> getStringForKey ("name", "zhy_cheng "). c_str (); CCLog ("% s", CCUserDefault: sharedUserDefault ()-> getStringForKey ("name", "zhy_cheng "). c_str (); the second parameter of getStringForKey is used when the Key cannot be found. The file storage address can be obtained using CCUserDefault: sharedUserDefault ()-> getXMLFilePath (). c_str. After obtaining the file storage address, I found the following: [html] <? Xml version = "1.0" encoding = "UTF-8"?> <UserDefaultRoot> <string> value2 </string> <integer> 11 </integer> <float> 2.500000 </float> <double> 2.600000 </double> <bool> false </Boolean> <name> zhycheng </name> <bool> true </BOOL> <DOUBLE> 2.600000 </DOUBLE> <FLOAT> 1.200000 </FLOAT> <INT> 3 </INT> </userDefaultRoot> <? Xml version = "1.0" encoding = "UTF-8"?> <UserDefaultRoot> <string> value2 </string> <integer> 11 </integer> <float> 2.500000 </float> <double> 2.600000 </double> <bool> false </Boolean> <name> zhycheng </name> <bool> true </BOOL> <DOUBLE> 2.600000 </DOUBLE> <FLOAT> 1.200000 </FLOAT> <INT> 3 </INT> </userDefaultRoot> in plain text, if encryption is not enabled, game players can change it. Pay attention to this. Image anti-aliasing can be solved as follows: [cpp] CCSprite * s = CCSprite: create ("xiao.png"); // anti-aliasing s-> getTexture ()-> setAntiAliasTexParameters (); // s-> getTexture ()-> setAliasTexParameters (); // do not resist serticate s-> setPosition (ccp (240,160); addChild (s); CCActionInterval * ac = CCScaleTo:: actionWithDuration (2, 5); s-> runAction (ac); CCSprite * s = CCSprite: create ("xiao.png"); // anti-sawtooth s-> getTexture () -> setAntiAliasTexParameters (); // s-> getTexture ()-> setAliasTexParameters (); // The value is not anti-sawtooth s-> setPosition (ccp (240,160); addChild (s ); CCActionInterval * ac = CCScaleTo: actionWithDuration (); s-> runAction (ac); Next let's look at the effect of anti-aliasing and anti-aliasing: The effect after the source image is enlarged to 5 is not