Creating a Totem Destroyer level

Now you have the skills to create your first game prototype, and we are going to start with a Totem Destroyer level.

To show you we are doing things for real, we will take a real level of the popular Flash game Totem Destroyer, and reproduce an exactly similar one. Look at the following screenshot:

Creating a Totem Destroyer level

Totem Destroyer: Gabriel Ochsenhofer (www.gabs.tv)

This is the first level of the original Totem Destroyer game, and if you look at it you will find bricks of a size which are multiples of 30. Can you figure out why? Yes, it's simple, because of the meters to pixels conversion.

The author probably created the game working ...

Get Box2D for Flash Games 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.