Winter Racing

Game, the annual winter car contest is about to begin! You need to drive a car to a field race to get gold coins to buy better cars and beat the opponents to win the race.

Level controller

There are a lot of repetitive functions, here we extract in accordance with the properties of different levels of several public parent class, each level according to their own needs to choose to inherit the appropriate controller, and ViewDidLoad function initialization of each level of different attributes .

WNXBaseGameViewController is a base class controller for all level ViewController that provides basic property settings for each level of the game and the initialization of each level is encapsulated here and each level only needs to call the buildStageInfo () function in its own ViewDidLoad method , Add to build their own UI can override the parent class method to complete each of the different operations.

Common attributes

WNXGameGuideType guideType Each time you enter the level for the first time, the game gesture hint style

WNXGameGuideTypeNone Silent

WNXGameGuideTypeOneFingerClick Single finger click

WNXGameGuideTypeReplaceClick left and right buttons alternately click

WNXGameGuideTypeMultiPointClick Multiple fingers click simultaneously

你可能感兴趣的:(Winter Racing)