Node
public class Node: NodeGeometry, Tree, Equatable, Hashable
A Node
is the most basic object from which most game type objects should be subclassed from.
This type cannot be rendered but contains all the necessary geometry to be used as if it were being displayed. It also contains the relevant information for adding and removing nodes to the tree hierarchy, running actions, and updating.
The following classes are subclasses of this and in general should be sufficient for most purposes. - Scene - ShapeNode - SpriteNode - TextNode - Camera
-
Undocumented
Declaration
Swift
public class Node: NodeGeometry, Tree, Equatable, Hashable
-
Undocumented
Declaration
Swift
public class Node: NodeGeometry, Tree, Equatable, Hashable
-
Undocumented
Declaration
Swift
public class Node: NodeGeometry, Tree, Equatable, Hashable
-
Undocumented
Declaration
Swift
public class Node: NodeGeometry, Tree, Equatable, Hashable
-
Undocumented
Declaration
Swift
public class Node: NodeGeometry, Tree, Equatable, Hashable
-
Undocumented
Declaration
Swift
public class Node: NodeGeometry, Tree, Equatable, Hashable
-
Undocumented
Declaration
Swift
public class Node: NodeGeometry, Tree, Equatable, Hashable
-
Undocumented
Declaration
Swift
public class Node: NodeGeometry, Tree, Equatable, Hashable
-
Undocumented
Declaration
Swift
public class Node: NodeGeometry, Tree, Equatable, Hashable
-
Undocumented
Declaration
Swift
public class Node: NodeGeometry, Tree, Equatable, Hashable
-
Undocumented
Declaration
Swift
public class Node: NodeGeometry, Tree, Equatable, Hashable
-
Undocumented
Declaration
Swift
public class Node: NodeGeometry, Tree, Equatable, Hashable
-
Undocumented
Declaration
Swift
public class Node: NodeGeometry, Tree, Equatable, Hashable
-
Designated initializer.
Declaration
Swift
public init(size: CGSize = .zero)
Parameters
size
The size in the scene.
Return Value
A new instance of
Node
. -
A function that’s called on every frame update. When subclassing
Node
be sure to call super in this function.Declaration
Swift
public func update(delta: CFTimeInterval)
Parameters
delta
The amount of time that’s passed since this function was last called.
-
Undocumented
Declaration
Swift
public class Node: NodeGeometry, Tree, Equatable, Hashable
-
Undocumented
Declaration
Swift
public class Node: NodeGeometry, Tree, Equatable, Hashable
-
Undocumented
Declaration
Swift
public class Node: NodeGeometry, Tree, Equatable, Hashable