Desert Rally-Fast drift

The race through the desert is in progress. In the game, the player controls the drift of the buggy and does not allow the buggy to run off the track. Once you run out of the runway, the game is over! Come and experience the thrill of driving in a desert!

Save and read player level records (WNXStageInfoManager)

How to persist store game player clearance information and score each record .This project uses archiving and solution.Wonder WNXStageInfoManager get a singleton object, by calling the Save and Read method to save or read the level information, when the game level into the settlement score Controller, determine whether the new record needs to be saved, save the interface if you need to call specific implementation code, please refer to WNXStageInfoManager.m file

// singleton method

+ (instancetype) sharedStageInfoManager;

// Save the level information

- (BOOL) saveStageInfo: (WNXStageInfo *) stageInfo;

// Read the level information of the specified level number

- (WNXStageInfo *) stageInfoWithNumber: (int) number;

// This interface is when the game can not pass, click the handle button in the RootViewController to unlock the next level to use (** Cheats ~ caution **)

- (BOOL) unlockNextStage;

你可能感兴趣的:(Desert Rally-Fast drift)