Who Is This Book For?
This book was written for programmers interested in making video games with Unity. Its not recommended that you learn to program for the first time while reading this book.
The programming language used in this text is C#. Although this text does not include a C# tutorial, the C# language is syntactically similar to many other popular programming languages. If youre already familiar with a language such as Java, then the syntax of C# will come naturally to you. Explanations of pertinent aspects of C# are included with the code examples used while building the game in this book.
What Are We Building?
This book is structured toward building a 2D RPG-style game in Unity over the course of eight chapters. The game is in the style of those top-down RPGs from the 1990s, but the concepts can be carried over to create other types of games as well.
You should feel free to tinker with the code, break things, change things around, and tweak values. If you break something and cant figure out how to fix it, refer to the source code from the Apress GitHub account to fix things. As youre working your way through this book, remember that it can be helpful to have something explained a different way. If youre not content with an explanation in this book, or if you would benefit from an alternate explanation, look to the Unity documentation online. Look at gamedev.stackexchange.com and the official Unity forums and ask questions. Make sure you understand whats going on. Dont settle for half of an understandingyoull do yourself a disservice.
What You Will Need for This Book
The hardware requirements for this book are minimal: a PC or MacBook made in the past few years. The software requirements to run Unity 2018 are Windows 7 SP1+, 8, 10, 64-bit versions only; or macOS 10.11+. Well be using the personal edition of the Unity software, which is free.
Art Sources
The Enemy sprites in this book were created using a wonderful procedural-generation sprite tool created by Robert Norenberg. The tool can be found here: https://0x72.itch.io/pixeldudesmaker
The typeface used in this books sample game is called Silkscreen. Silkscreen was created by Jason Kottke and can be found here: https://www.1001fonts.com/silkscreen-font.html
The heart and coin sprites are sourced from the sprite set on OpenGameArt.org created by user: ArMM1998 and licensed CC0, public-domain.
The map tile artwork was created by the author, Jared Halpern, based heavily on pixel-style art from the heart and coin sprite set on OpenGameArt.org. The player sprites were all created from scratch by the author as well. Both the map tile artwork and the player sprites are licensed by CC0, public-domain.
Acknowledgments
Above all, I want to thank my wife Drew for her boundless support, love, advice, patience, snacks, and encouragement over the past year while I worked evenings and weekends on this book. I could never have done this without you.