我在XCode中使用Sprite Kit制作了一个Sprite,当我运行代码evriwhere时,我什么也没有发生,这是我的Gamescene swift文件的代码:
import SpriteKit
import GameplayKit
class GameScene: SKScene {
var entities = [GKEntity]()
var graphs = [String : GKGraph]()
var Firstplayer: SKSpriteNode?
private var lastUpdateTime : TimeInterval = 0
private var label : SKLabelNode?
private var spinnyNode : SKShapeNode?
override func didMove(to view: SKView) {
// Setup player
Firstplayer = self.childNode(withName: "Firstplayer") as?
SKSpriteNode
}