正如标题所说,我是否可以调用任何方法从文件(.SKS)加载SKScene
而不调用init(fileNamed: "...")
方法?
答案 0 :(得分:0)
您可以这样做:
float screenWidth = [UIScreen mainScreen].bounds.size.width;
float screenHeight = [UIScreen mainScreen].bounds.size.height;
GameScene *scene = [[GameScene alloc]initWithSize:CGSizeMake(screenWidth, screenHeight)];
继续编码......:)