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)
评论
目前还没有任何评论
登录后才可评论.