Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mobile Game Design Essentials

You're reading from   Mobile Game Design Essentials Immerse yourself in the fundamentals of mobile game design. This book is written by two highly experienced industry professionals to give real insights and valuable advice on creating games for this lucrative market.

Arrow left icon
Product type Paperback
Published in Nov 2013
Publisher Packt
ISBN-13 9781849692984
Length 358 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (14) Chapters Close

Preface 1. Operating Systems – Mobile and Otherwise FREE CHAPTER 2. The Mobile Indie Team 3. Graphics for Mobile 4. Audio for Mobile 5. Coding Games 6. Mobile Game Controls 7. Interface Design for Mobile Games 8. Mobile Game Engines 9. Prototyping 10. Balancing, Tuning, and Polishing Mobile Games 11. Mobile Game Design 12. Pitching a Mobile Game Index

Unity3D tutorial – part 2


In the first part of our tutorial in Chapter 8, Mobile Game Engines, we prepared the game scene. In this second part we will show how to make things behave properly.

Let's begin thinking about the game logic we are going to implement in our game.

In Space Invaders the player controls a ship located at the bottom of the screen, which moves left and right and shoots bullets.

The goal is to destroy wave after wave of aliens approaching towards the player's ship from the top half of the screen, before they reach the bottom of the screen, while avoiding the bullets they fire.

Aliens move according to a snake-like pattern; they begin moving right and as they reach the right boundary of the screen, they invert direction and move a little bit closer to the bottom of the screen, then repeat the cycle as they move left and reach the left boundary of the screen.

Once in a while, aliens shoot bullet towards the player's ship.

Player's bullets move bottom-up, while aliens' move top...

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