Golden Thumb

1-on-1 tutor of chosen kids
個人資料
正文

剛錄完10集,喜歡國際象棋的小朋友可以在蘋果電腦上開玩啦。不知不覺,就快到100集了:D

(2020-06-04 10:25:22) 下一個

 

從創建Xcode項目開始,一路到創建app圖標,完成了一個可以替代物理棋盤的iOS應用。

Swift Chess 1 | Creating Xcode project and adding a BoardView for chess board

 

Swift Chess 2 | Drawing the chess board for any screen size

 

 

Swift Chess 3 | Adding 12 piece images into Xcode

 

 

Swift Chess 4 | Drawing 32 pieces on board

 

 

Swift Chess 5 | Detecting finger touches

 

 

Swift Chess 6 | Implementing a model function to move a piece

 

 

Swift Chess 7 | Moving pieces with a finger

 

 

Swift Chess 8 | Dragging a piece with our finger

 

 

Swift Chess 9 | Fixing a bug when moving a piece to its original location

Swift Chess 10 | Baking our app icon

 

[ 打印 ]
閱讀 ()評論 (0)
評論
目前還沒有任何評論
登錄後才可評論.