Post

Replies

Boosts

Views

Activity

Comment on Combining SwiftUI & SpriteKit
Yes, I already tried this with '''class MapScene: SKScene { class func newGameScene() -> GameScene { guard let scene = SKScene(fileNamed: "GameScene") as? GameScene else { print("Failed to load GameScene.sks") abort() } scene.scaleMode = .aspectFill return scene } }''' But there's just a black screen. I think my code is wrong. So if you have some free time, could you provide me with the correct version of the code?
Oct ’23