Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CustomNode: SKSpriteNode {
- init() {
- let texture = SKTexture(imageNamed: customNodeImage)
- super.init(texture: texture, color: SKColor.clear, size: texture.size())
- }
- required init(coder aDecoder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement