Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Unity Android Game Development by Example Beginner's Guide

You're reading from   Unity Android Game Development by Example Beginner's Guide Absolute beginners to designing games for Android will find this book is their passport to quick results. Lots of handholding and practical exercises using Unity 3D makes learning a breeze.

Arrow left icon
Product type Paperback
Published in Dec 2013
Publisher Packt
ISBN-13 9781849692014
Length 320 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Thomas James Finnegan Thomas James Finnegan
Author Profile Icon Thomas James Finnegan
Thomas James Finnegan
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Saying Hello to Unity and Android FREE CHAPTER 2. Looking Good – Graphical Interface 3. The Backbone of Any Game – Meshes, Materials, and Animations 4. Setting the Stage – Camera Effects and Lighting 5. Getting Around – Pathfinding and AI 6. Specialties of the Mobile Device – Touch and Tilt 7. Throwing Your Weight Around – Physics and a 2D Camera 8. Special Effects – Sound and Particles 9. Optimization A. Pop Quiz Answers Index

Time for action – creating the slingshot

Most of the slingshot's appearance will actually be an optical illusion:

  1. To start off the creation of the slingshot, add the slingshot model to the scene and position it at the origin. Apply a light brown material to the Fork model and a dark brown one to the Pouch model.
  2. Next, we need four empty GameObject. Make them all the children of the Slingshot object.
    • Name the first FocalPoint and center it between the fork prongs of the slingshot. This will be the point through which we fire all of the birds.
    • The second is Pouch. Make the pouch model a child of this object, setting its position to 0.5 on the X axis and 0 on the Y and Z axes. This will make the pouch appear in front of the current bird without having to make a complete pouch model.
    • Third is BirdPoint; this will position the bird that is being fired. Make it a child of the Pouch point and set its position to 0 on the X and Y axes and 0.3 on the Z axis.
    • Last is WaitPoint; the birds waiting...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image