Created
January 29, 2016 11:55
-
-
Save lucasprag/e8f181da9040d080d0f2 to your computer and use it in GitHub Desktop.
Simple enum to help us to use the physics body
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SpriteKit | |
enum Physics { | |
static let Character: UInt32 = 0b1 // 1 | |
static let Floor : UInt32 = 0b10 // 2 | |
} | |
class GameScene: SKScene { | |
// omitted | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment