[阅读全文]
Five Steps to Create a Chess App 4/5
Step 4: draw pieces
Summary of previous 3 steps:
Step 1: created chess app from scratch
Step 2: added a view for our chess board
Step 3: drew 8x8 chess board
We need 12 piece images, 6 white and 6 black, to represent 32 pieces on board. Try to search whatever images you like and download them into, e.g. “Downloads” folder.
![](https://miro.medium.com/max/1014/1*OGl_rydr9qSicDtxK5gVNw.png)
Go back to Xcode and click “Assets.xcassets” on the left navigation panel. We’ll drag and drop all 12 piece images onto the big white area under “AppIcon”.
![](https://miro.medium.com/max/1340/1*YWnqK_yKC-dFUrLQZmp0rg.png)
...
[阅读全文]