Bring your game to Mac: Make a game plan

RSS for tag

Discuss the WWDC23 Session Bring your game to Mac: Make a game plan

Posts under wwdc2023-10123 tag

2 Posts

Post

Replies

Boosts

Views

Activity

Adding Component to Sprite in SpriteKit/ GameplayKit grey out simulator after launch screen
I have Xcode 14.3.1 /////START of Code import SpriteKit import GameplayKit class PlayerControlComponent : GKComponent, ControlInputDelegate { var touchControlNode : TouchControlInputNode? func setupControls (camera: SKCameraNode, scene: SKScene){ touchControlNode = TouchControlInputNode(frame: scene.frame) touchControlNode?.inputDelegate = self touchControlNode?.position = CGPoint.zero camera.addChild(touchControlNode!) } func follow(command: String?) { print("command:(String(describing: command))") } } ///////End of code I have no error in project and the simulator shows launch screen then precedes to what I have on the game scene when I have no component in the component inspector of the the Sprite(player) when I add a component to the component inspector of the Sprite(player) that is when, after the launch screen, it is a grey screen. The component is supposed to add the controls I created in the TouchContorolNode file and have the camera and controls so as the player moves the controls follow the Sprite(player). Does anyone know why the screen is turning Grey after the launch screen with the comment attached to the Sprite(player)?
1
0
1.1k
Jun ’23
Adding Component to Sprite in SpriteKit/ GameplayKit grey out simulator after launch screen
I have Xcode 14.3.1 /////START of Code import SpriteKit import GameplayKit class PlayerControlComponent : GKComponent, ControlInputDelegate { var touchControlNode : TouchControlInputNode? func setupControls (camera: SKCameraNode, scene: SKScene){ touchControlNode = TouchControlInputNode(frame: scene.frame) touchControlNode?.inputDelegate = self touchControlNode?.position = CGPoint.zero camera.addChild(touchControlNode!) } func follow(command: String?) { print("command:(String(describing: command))") } } ///////End of code I have no error in project and the simulator shows launch screen then precedes to what I have on the game scene when I have no component in the component inspector of the the Sprite(player) when I add a component to the component inspector of the Sprite(player) that is when, after the launch screen, it is a grey screen. The component is supposed to add the controls I created in the TouchContorolNode file and have the camera and controls so as the player moves the controls follow the Sprite(player). Does anyone know why the screen is turning Grey after the launch screen with the comment attached to the Sprite(player)?
Replies
1
Boosts
0
Views
1.1k
Activity
Jun ’23
Better Optimization for games
In the video shown by Apple, there are two modes shown in the upper right corner: Composited and Direct. But I tried some games, such as Cyberpunk 2077 on Steam, they are all in the Composited mode. Is there a list of games that support the Direct mode?
Replies
1
Boosts
0
Views
1.3k
Activity
Jun ’23