A Beginner's Guide to 2D Shooter Games with Unity (Book)

Create 2D Shooter Games and Learn to code in the Process

Book Description

In this book, you will get started with creating a simple 2D shooter game. The book provides an introduction to 2D shooter games, and it explains how to use C# in order to create an interactive environment.

What you will Learn

After completing this book you will be able to:

  • Write code in C#
  • Create a 2D shooter game.
  • Implement interesting game mechanics.
  • Complete the game from start to finish .

Topics covered in this book:

Topics covered in this book include:

  • Moving a 2D character using a top-down view
  • Creating Sprites.
  • Creating animated sprites (i.e., explosions)
  • Creating and using prefabs.
  • Creating a user interface.
  • Using Physics Materials and 2D RigidBody components.
  • Using Audio for background music or special effects.
  • Managing score.
  • Creating projectiles.
  • Scrolling background.
  • Managing (and ignoring collisions).
  • Generating random numbers.
  • Creating explosions.
  • Creating Timers.
  • Creating Artificial Intelligence (i.e., sight detection, shooting, etc.).
  • Creating a temporary shield.
  • Ignoring collisions based on tags or layers.

If you would like to start scripting with 2D shooters in Unity but do not know how, then this book should be very helpful. This is a perfect introduction to 2D game creation and it will provide you with solid foundations to understand and use C# to create simple 2D games.

Key features

  • Create a 2D shooter game.
  • Learn to code in C#
  • Quizz at the end of each chapter
  • Code solutions provided

Your Instructor


Patrick Felicia is a lecturer and researcher at Waterford Institute of Technology, where he teaches and supervise undergraduate and postgraduate students. He obtained his MSc in Multimedia Technology in 2003 and PhD in Computer Science in 2009 from University College Cork, Ireland. He has published several books and articles on the use of video games for educational purposes, including the Handbook of Research on Improving Learning and Motivation through Educational Games: Multidisciplinary Approaches (published by IGI), and Digital Games in Schools: a Handbook for Teachers, published by European Schoolnet. Patrick is also the Editor-in-chief of the International Journal of Game-Based Learning (IJGBL), and the Conference Director of the Irish Symposium on Game-Based Learning, a popular conference on games and learning organized throughout Ireland.

Get started now!