刚录完10集,喜欢国际象棋的小朋友可以在苹果电脑上开玩啦。不知不觉,就快到100集了:D

打印 被阅读次数

 

从创建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

 

登录后才可评论.