This chapter covers a lot but by the end, you’ll have a functioning prototype of a game. We’ll build some interesting features such as a reusable artificial intelligence component with chasing behavior. Our courageous Player also will finally receive her weapon of choice: a slingshot, to defend herself with. You’ll learn a widely used optimization technique in game programming called Object Pooling, as well as put some of that high-school math to use that you never thought you’d need. This chapter also demonstrates the usage of Blend Trees, which are a more efficient ...
8. Artificial Intelligence and Slingshots
Get Developing 2D Games with Unity: Independent Game Programming with C# now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.