Winter|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.
【Winter|Winter Racing】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
推荐阅读
- backtracing——|backtracing—— 131. 分割回文串
- 游戏开发|pygame小游戏开发 - 冰雪英雄会
- PyGame每日一练——五子棋小游戏
- hdu|2016 Multi-University Training Contest 1 C Game(hdu 5725)
- POJ 1027 The Same Game 模拟题
- 比赛题解|2020 杭电多校9 1007 Game (平衡树)
- ZOJ-3447---Doraemon's Number Game (贪心+大数)
- 【组合计数】ARC061F Card Game for Three
- 2019 GDUT Winter Personal Training Contest III (Div. 2) A题 QAQ 题解
- 2019 GDUT Winter Personal Training Contest I (Div. 2) A. Protect Sheep