7

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?

mnuages
  • 13,049
  • 2
  • 23
  • 40
Alec Firtulescu
  • 543
  • 6
  • 18

1 Answers1

0

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......... :)

Krishna Raj Salim
  • 7,331
  • 5
  • 34
  • 66