Method for loading a SKScene from a file without calling the init(fileNamed:"")

367 views Asked by At

As title says, is there any method that I can call to load a SKScene from a file (.SKS) without calling the init(fileNamed: "...") method?

1

There are 1 answers

0
Krishna Raj Salim On

You can do like this:

float screenWidth  = [UIScreen mainScreen].bounds.size.width;
float screenHeight = [UIScreen mainScreen].bounds.size.height;
GameScene *scene   = [[GameScene alloc]initWithSize:CGSizeMake(screenWidth, screenHeight)];

Keep Coding......... :)