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

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容