Book Image

Learning Unity iOS Game Development

Book Image

Learning Unity iOS Game Development

Overview of this book

Table of Contents (14 chapters)
Learning Unity iOS Game Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
6
Main Menu, iAds, Leaderboards, Store Purchases, and Achievements
Index

Creating the coin pickup


The coin pickup is a representation of the good type of collider the character can interact with. It will be what the player collects in the game that they can use for currency. Perform the following steps:

  1. To start with, navigate to the Assets folder, right-click on it, and select Create Folder. Name this folder Pickup.

  2. Open the Pickup folder, right-click on it, and select Import New Asset…. Navigate to the Art files for this book, and open the ChapterThree_Pickup folder, and select the Pickup_Coin.png file to import.

  3. With the Pickup_Coin.png file imported, select it. Then, in the Inspector window, select Sprite Mode as Multiple.

  4. Then, select Filter Mode as Point.

  5. Now, select Max Size as 256.

  6. Then, select Format as Truecolor.

  7. Finally, click on Apply.

  8. Now, click on the Sprite Editor button to open Sprite Editor.

  9. Then, click on the Slice button in Sprite Editor and select Type as Grid.

  10. Now, select Pixel Size for both X and Y as 32.

  11. Then, select Pivot as Top Left.

  12. Now, click on...