Book Image

Mastering Unity 2D game development

By : Simon Jackson
5 (1)
Book Image

Mastering Unity 2D game development

5 (1)
By: Simon Jackson

Overview of this book

Table of Contents (21 chapters)
Mastering Unity 2D Game Development
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Overview
Index

Chapter 7. Encountering Enemies and Running Away

The world is full of big and scary things, or so at least our budding hero is about to find out; you'd think someone would have warned him.

At the heart of most RPG-style games are the bad guys. How they think and how they confront and challenge you will mark your game as either too hard or too easy. Sadly, there isn't any real middle ground (you can't please everyone all the time). However, we can ensure a fair system all round and engage the players with systems that will surprise and entertain them as they move around in the big bad world.

The following topics will be covered in this chapter:

  • Planning for event systems

  • State machines

  • Basic AI techniques