Swift - SpriteKit CGPoint Alignment

前端 未结 1 1789
情深已故
情深已故 2020-11-28 17:05

I\'m working on a project in swift and I am able to make a sprite. I am trying to make a sprite at a number of different locations. As a test I replaced the code in the game

相关标签:
1条回答
  • Your scene it is not necessarily the same size of your view. You can check the size of your scene as follow:

    view.scene!.frame.size
    view.scene!.frame.width
    view.scene!.frame.height
    view.scene!.frame.midX
    view.scene!.frame.midY
    
    0 讨论(0)
提交回复
热议问题