DivergentChallenge
class DivergentChallenge : ChallengeGameScene
The game scene specific to the level “Divergent”.
-
Whether the player is eligible for receiving the achievement.
Declaration
Swift
var eligible: Bool
-
Listen to the keys and disable the eligibility factor if a keypress for the costume change is active.
Declaration
Swift
override func keyDown(with event: NSEvent)
-
Determine if the time to complete the level is less than 100 seconds and grant an achievement.
Declaration
Swift
override func willCalculateChallengeResults()