Learn C# programming basics, terminology, and coding best practices
Become confident with Unity fundamentals and features in line with Unity 2021
Apply your C# knowledge in practice and build a working first-person shooter game prototype in Unity
Description
The Learning C# by Developing Games with Unity series has established itself as a popular choice for getting up to speed with C#, a powerful and versatile programming language with a wide array of applications in various domains. This bestselling franchise presents a clear path for learning C# programming from the ground up through the world of Unity game development.
This sixth edition has been updated to introduce modern C# features with Unity 2021. A new chapter has also been added that covers reading and writing binary data from files, which will help you become proficient in handling errors and asynchronous operations.
The book acquaints you with the core concepts of programming in C#, including variables, classes, and object-oriented programming. You will explore the fundamentals of Unity game development, including game design, lighting basics, player movement, camera controls, and collisions. You will write C# scripts for simple game mechanics, perform procedural programming, and add complexity to your games by introducing smart enemies and damage-causing projectiles.
By the end of the book, you will have developed the skills to become proficient in C# programming and built a playable game prototype with the Unity game engine.
Who is this book for?
If you're a developer, programmer, hobbyist, or anyone who wants to get started with Unity and C# programming in a fun and engaging manner, this book is for you. You’ll still be able to follow along if you don’t have programming experience, but knowing the basics will help you get the most out of this book.
What you will learn
Follow simple steps and examples to create and implement C# scripts in Unity
Develop a 3D mindset to build games that come to life
Create basic game mechanics such as player controllers and shooting projectiles using C#
Divide your code into pluggable building blocks using interfaces, abstract classes, and class extensions
Become familiar with stacks, queues, exceptions, error handling, and other core C# concepts
Learn how to handle text, XML, and JSON data to save and load your game data
Explore the basics of AI for games and implement them to control enemy behavior
I can't speak more highly about this book and the author. I've searched far for a book that teaches Unity in the way this does.Unity's own tutorials while I believe are useful, tend to not show you the absolute base stuff which I feel like this book does perfectly, especially with dealing with primitives. Also the thing I really like about this book is that it starts you out with the coding and not making you navigate Unitys UI right off the bat. I feel like that is a vastly important decision that really makes this book perfect if you're the type of learning I am. To me, I learn more by making stuff work in code then with a GUI, and this book perfectly mixes the two with more of a reliance on the former.
Amazon Verified review
Forrest SeversonMay 23, 2023
5
This book is wonderful and helped me relearn Unity after getting out of the Army.
Amazon Verified review
Jarvis HillJan 24, 2022
5
Learning C# by Developing Games is a really great book to pick up if you're trying to get into unity development. The book initially walks you through everything you need to know to get started. The early chapters familiarized you with C# and Visual Studio editor. Then you’ll go over everything you need to know about the fundamentals of programming. You’ll review the basics like variables and methods. As you get deeper into the book you gain more in-depth knowledge. The book does a great job of teaching you how to control the flow of the code through the use of If and Switch conditional Statements which makes it easier to work with collections like Arrays, List, and Dictionaries. You’ll end up gaining a better understanding of Object Oriented Programing. Later chapters will explain the differences between Classes and Struct and went to use them. As you make your way towards the end of the book you will start to learn more complex things like How to code the Gameplay Mechanics, control and move your player, and how to code the Enemy AI’s movement and Behaviors. You even learn how to save and load the game's data using JSON and XML. This book is a great read and I highly recommend it.
Amazon Verified review
Rich TannerNov 12, 2021
5
This text is a great introduction to both Unity and to C#, and serves as a wonderful refresher if you’ve experience in either topic.I’ve been playing in both C# and Unity for years now, and I even found a few brand new tidbits among the fun projects within.I plan to assign this resource for future college courses, and, quite frankly, this is the textbook I wish I had written myself!Great work Harrison Ferrone and Packt!
Amazon Verified review
Jonathan BallJun 08, 2022
5
This is a very inspirational and informative book. I already have some C# experience but had 0 experience with Unity and found it to be a fantastic intro. The simple game that you will build from this book is very exciting for a newcomer and I highly recommend it to anyone that loves video games and wants to become a .net / C# developer.This book is however not the be all and end all to C# programming as the author will even tell you so you will still need to keep learning C# after the book is done to become anything of a decent C# programmer.I did not buy this book from Amazon but from Packt publishing so that is why I am not a verified purchaser although Kindle is an amazing book reading app so perhaps have a look at the Kindle edition on Amazon.
Harrison Ferrone was born in Chicago, IL. Most days, you can find him creating instructional content for LinkedIn Learning or trying to learn something new. He holds various fancy looking pieces of paper from the University of Colorado at Boulder and Columbia College Chicago, and despite being a proud alumnus, most of these are stored in a basement somewhere. After a few years as an iOS developer at small start-ups, and one Fortune 500 company, he fell into a teaching career and never looked back. Throughout all this, he's bought many books, acquired a few cats, worked abroad, and continually wondered why Neuromancer isn't on more course syllabi
Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.
If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.
Please Note: Packt eBooks are non-returnable and non-refundable.
Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:
You may make copies of your eBook for your own use onto any machine
You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website?
If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:
Register on our website using your email address and the password.
Search for the title by name or ISBN using the search option.
Select the title you want to purchase.
Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title.
Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook?
If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
To view your account details or to download a new copy of the book go to www.packtpub.com/account
Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.
You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.
What are the benefits of eBooks?
You can get the information you need immediately
You can easily take them with you on a laptop
You can download them an unlimited number of times
You can print them out
They are copy-paste enabled
They are searchable
There is no password protection
They are lower price than print
They save resources and space
What is an eBook?
Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.
When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.
For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.