- Swift Game Development(Third Edition)
- Siddharth Shekar Stephen Haney
- 198字
- 2021-07-16 17:37:41
Cleaning up
I hope that you have absorbed some Swift syntax and gained an overview of Swift and SpriteKit. It is time to make room for our own game; let's clear all of that demo code out! We want to keep a little bit of the boilerplate, but we can delete most of what is inside the functions. To be clear, I do not expect you to understand this code yet. This is simply a necessary step toward the start of our journey.
Firstly, we will remove the Hello, World
text from the demo. Open the GameScene.sks
file from the project navigator in Xcode. You will see a gray layout view with Hello, World written in the middle. Simply click anywhere on the Hello, World
text and press your Delete key to remove it. Make sure you save your file before moving on.
Secondly, please replace all of the code from your GameScene.swift
file with the following code:
import SpriteKit class GameScene: SKScene { override func didMove(to view: SKView) { } }
Once your GameScene.swift
file looks like the preceding code, you are ready to move on to Chapter 2, Sprites, Camera, Actions! The real fun begins now!
- 區(qū)塊鏈在電子檔案管理中的應(yīng)用
- 面向青少年的博物館教育(上下卷)
- 國外圖書館動漫資源建設(shè)與服務(wù)
- 中國古代圖書館學(xué)研究
- 醫(yī)學(xué)文獻(xiàn)管理
- 高校圖書館門戶網(wǎng)站建設(shè)(谷臻小簡·AI導(dǎo)讀版)
- 高校圖書館閱讀推廣與宣傳促進(jìn)研究
- 檔案檢索: 理論與方法
- 醫(yī)藥信息處理與分析
- Mobile Artificial Intelligence Projects
- 大數(shù)據(jù)環(huán)境下高校圖書館知識服務(wù)模式研究
- 文獻(xiàn)價(jià)值:理論文獻(xiàn)學(xué)的價(jià)值論解讀
- 圖書館服務(wù)管理內(nèi)化:概念、過程及整合因素
- 中外學(xué)術(shù)論文中英文摘要語料庫的創(chuàng)建及應(yīng)用
- 縱心所欲:徜徉于稀見與常見書之間