Skip to content

Instantly share code, notes, and snippets.

@lucasprag
Created January 29, 2016 11:55
Show Gist options
  • Save lucasprag/e8f181da9040d080d0f2 to your computer and use it in GitHub Desktop.
Save lucasprag/e8f181da9040d080d0f2 to your computer and use it in GitHub Desktop.
Simple enum to help us to use the physics body
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