Chapter 11. Managing a World of Sprites

When you think about it, the real world we live in is all about actions and reactions. If you kick a ball, the ball will respond to the impact by traveling a certain distance, where it might collide with another object or eventually come to rest thanks to air and ground friction. The real world is therefore a system of objects that physically interact with one another. You can think of a system of sprites as a similar system of objects that are capable of interacting with each other in a variety of ways. The primary manner in which sprites can interact is through collisions, which involve objects running into each other. This hour focuses on the design and development of a sprite manager that allows you ...

Get Sams Teach Yourself Game Programming in 24 Hours 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.