CHAPTER 6
Defining Behaviors and Detecting Collisions
After completing this chapter, you will be able to:
- Implement autonomous, controlled, gradual turning and target-locked chasing behaviors
- Collide textured objects accurately
- Understand the efficiency concerns of pixel-accurate collision
- Program with pixel-accurate collision effectively and efficiently
Introduction
By this point, your game engine is capable of implementing games in convenient coordinate systems and presenting and animating objects that are visually appealing. However, there is a lack of abstraction support for the behaviors of objects. You can see the direct result of this ...
Get Build Your Own 2D Game Engine and Create Great Web Games: Using HTML5, JavaScript, and WebGL 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.