
上QQ阅读APP看书,第一时间看更新
Chapter 4. Creating an Enemy AI
Pretty much every game has bad guys and it is no different in GAS. In this chapter, we will create our very own enemy artificial intelligence (AI) that can shoot at the player. Here is what you will learn:
- How to register a new AI class
- How to make the AI detect the player and not move
- How to make the AI shoot the player