Skip to content

Instantly share code, notes, and snippets.

@PedroFarina
Last active June 24, 2019 21:57
Show Gist options
  • Save PedroFarina/c4b4c28a54a0f02398c219aabc905214 to your computer and use it in GitHub Desktop.
Save PedroFarina/c4b4c28a54a0f02398c219aabc905214 to your computer and use it in GitHub Desktop.
Types of nodes
import SpriteKit
var nodeGenerico = SKNode()
var nodeComTexto = SKLabelNode()
var nodeComImagem = SKSpriteNode(imageNamed:"imagem.jpg")
var nodeRetangular = SKShapeNode(rect: CGRect(x: 0, y: 0, width: 20, height: 10))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment