從 Swift Playgrounds 的 Learn to code 玩遊戲學程式
Published in
Mar 22, 2021
從 mac 或 iPad 下載 Swift Playgrounds
點選 See All 查看遊戲清單
下載 Learn to Code 系列
包含了 Learn to Code 1,Learn to Code 2 & Blu’s Adventure。
輸入程式玩遊戲
點選下方紅色框框查看遊戲的關卡和破關進度
Learn to Code 的遊戲關卡
Learn to Code 1
- Commands(指令)
呼叫 function - Functions(函數)
定義 function - For Loops(迴圈)
- Conditional Code(條件)
if else - Logical Operators
not !, and &&,or || - While Loops
- Algorithms(演算法)
Learn to Code 2
- Variables(變數)
變數,常數 - Types(型別)
instance(東西),存取 property(屬性) - Initialization(建立東西)
呼叫 method - Parameters(參數)
- World Building
- Arrays(陣列)
Blu’s Adventure
- Coordinates(座標)
- Touch Events(觸碰)
- Event Handler(事件處理)
- Finale(結局)