Chapter 8Making a Platformer Game with Physics

Our next game, Escape, is a platformer where the player controls a character that is trying escape a pit. The character, named Chip, runs and jumps between platforms while avoiding boulders that fall, spinning and bouncing, from above.

images/platformer/escape2.png

When boulders hit Chip, he doesn’t fall down, but he may be knocked to a lower platform, or even all the way to the bottom of the pit. Chip’s ascent out of the pit is timed; a shorter time is a better score.

Escape is a sprite game much like Sector Five. You’ll make classes for each kind of sprite in the game: boulders, platforms, and Chip. The difference is that ...

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.