Make It Your Own

In Escape, you use a physics engine to move your objects. To do this, you specify a large number of properties for each object you added to the space. Each object has a mass, rotational inertia, friction, elasticity, and maximum velocity. The physics space itself has gravity and damping properties. If you want to understand the way these properties affect the game, the best way to learn is to change them and see what happens. Make a copy of your game before you start.

Change some physics properties.

Play with some of the physics properties. See what happens if all friction is removed, or if all the elasticities are zero. See what happens when all the v_limit values are removed. When you have a feel for what they all do, try setting ...

Get Learn Game Programming with Ruby 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.