A Beginner's Guide to 2D Shooter Games
Create 2D Shooter Games and Learn to code in the Process by Patrick Felicia |
Book Description
In this book, the second in the "Beginner's Guide" series, you will create a simple 2D shooter game, create challenging gameplay and learn techniques to code more in less time.
This book can be read as a standalone (you don't need to have read the previous books in the series, although it may help) and focuses on scoring system and lives (e.g., keeping track of the score), user interface (menus and in-game information for 2D games), movement of the spaceship (e.g., left, right, up and down), missiles and explosions (i.e., fire missiles or create animated explosions upon collision), Artificial intelligence (e.g., moving independently or attacking the player) and improving your C# programming and Unity skills (e.g., important and useful functions and principles that you can reuse in your own games).
The main idea behind this book is to save you some headaches when you need to create your 2D shooter and to help you to find the time to actually code your game, by explaining simple and effective ways and best coding practices that you can use easily to create more code (and games) in less time with less stress and more fun.
The content of each chapter is as follows:
- Chapter 1, Creating a Simple Level, shows you how to create a simple level for a shooter game including a spaceship that you can move in all directions, missiles that you can fire, and meteorites that appear in random locations and that can be destroyed or avoided by the player.
- Chapter 2, Adding Special Effects, explains how it is possible to create simple, yet effective, visual effects to improve your game. Along the way, you will learn how to use sprite sheets and slice them to create your own animations.
- Chapter 3, Improving our Game, explains how you can add some interesting Artificial Intelligence to the NPCS (i.e., enemies) so that they can detect and shoot at the player; you will also learn how to keep track of the health of the player and the NPCs.
- Chapter 4, Polishing-up the game, shows and explains how to make the game even more challenging by progressively increasing the difficulty levels of the game, to add a temporary shield to the player, along with sound effects.
- Chapter 5 provides answers to Frequently Asked Questions (FAQs) related to the topics covered in this book.
- Chapter 6 summarizes the topics covered in the book and provides you with more information on the next steps.
Reviews
"This book was just the right pace. The step by step examples are put together well. I have all the basics I need to implement my own 2D shooter in Unity! Thanks Patrick! Well done. "- J, Amazon reader
"I'm a absolute beginner with no former experience and knowledge of Unity and programming, but I've successfully made a simple shooting game by following the instructions of this book! The author explained things clearly, even a beginner like me can understand all of them. I am going to buy another books by this author, and hope that he will write a book about 2D RPG or rougelike game in the future!! Thanks~!"
- Namakure, Amazon reader
"I'm an old grumpy programmer, and I was hoping to just a get a base project, and a quick run through the menus. I wasn't disappointed. Well worth the five dollar kindle price. "
- Rebeca, Amazon reader
"This book really helped me get going in 2D games. I have worked through some of the Zero to Proficiency series so 3D was fairly easy but some of the 2D topics some this book really helped round out a new project I am working on. The steps are easy to follow with clear pictures of what he is talking about. "
- Don W. Thurston, Amazon reader
"I'm currently working on a top down shooter similar in guise to Alien Breed and Gauntlet and have found this book essential in helping me through the stages of creating my own game by creating the game following the guide and examples within this book. The book helps you through all stages of building an asteroids style space shooter including how to create a game from scratch within Unity expecting you to have no prior experience and breaks down all the C# needed to code the game. This book is an excellent introduction to Unity and C# programming if you haven't programmed a game previously and have always wanted to. Highly recommend the author and the other books in his series. It has helped me no end in my own game programming endeavors. "
- Quagaars, Amazon reader
"I really liked this book. I had previously been working on a game and wanted to make enemies and a weapon for my character and with this book, I am now able to do that successfully. I think this was a great book. Anybody interested in making a shooting aspect in your 2D game should definitely get this book "
- Jotto, Amazon reader