Book Image

Learning C# by Developing Games with Unity

By : Daniel Wise
Book Image

Learning C# by Developing Games with Unity

By: Daniel Wise

Overview of this book

<p>Building games using Unity 3D has been very exciting for developers. Sharing that game with your friends and learning C# along the way and can be even more rewarding</p> <p>You will get acquainted with basic working information on how to get started with C# 7 and its latest features to create exciting games with help of Unity 5. From here, you can then Implement these features to develop a Flappy Bird application. Once you have developed your first application and gained expertise then you can now use some more features of C# and Unity to create a 2D version of Space Shooter Application and then develop a First-Person Shooter Application in 3D and enjoy its effects. Moving forward you will explore Object oriented Programming to simplify your codes and finally sharing your games with your loved ones.</p> <p>Along the way you will learn topics ranging from basic to intermediate concepts and create 3 games of your own. You will amaze yourself as you create fun games all while learning more about C# and game development.</p> <h1>Style and Approach</h1> <p>A step by step guide using humor and the author's vast knowledge of game development using C#.</p>
Table of Contents (7 chapters)
Chapter 4
Creating an Asteroids Game
Content Locked
Section 3
Using an Array and Loop to Instantiate Prefabs
Explore another C# coding concept known as an array. An array will be used here to store our asteroid prefabs and instantiate them with a loop. - Use an array to hold our asteroid prefabs - Create a loop in C# code that will go through the array - Instantiate each prefab using the while loop