SKNode only offers +node
method.
If you do this:
+ (instancetype)node {
CustomNode *body = [CustomNode node]; // infinite loop
}
If you do this:
+ (instancetype)node {
CustomNode *body = [super node]; // instance of SKNode, not CustomNode
}
How do you subclass a class that only has a convenience constructor in such way that you can override the constructor? Or is it best practice to create your own +customNode
method?