Do you like my tutorials?

Then consider supporting me on Ko-fi

Talking about Totem Destroyer game, Actionscript 3, Box2D, Flash and Game development.

An interesting game released these days is Totem Destroyer

Totem Destroyer

Your mission is to destroy the totems without letting the golden Idol (aka Tot) fall into the ground.

It’s a game that can be easily done with the AS3 physics engine Box2DFlashAS3, recently updated at version 2.0.1

I already talked about it in the post Playing with Box2DFlashAS3, now it’s time to make something more serious.

To make this prototype, I just changed some values in the demo script provided with the package and I made the beginning of a cute game in a few minutes.

Since it’s not a final game, I just created a level, made the ground indestructible and the other bodies destructible by pressing the mouse on them.

The aim of the game is to destroy a number of blocks without letting the sphere touch the ground, but at the moment there aren’t any rule… you can even destroy the sphere… but let me show you the game:

In order to do this prototype, as said, I only changed the files Main.as, Test.as and TestStack.as that you can find in the distribution package. And obviously the PhysTest.fla.

Now, let’s see the to-do list:

Counting the blocks I need to destroy to complete the level
Preventing the ball to be destroyed
Checking collision between the ball and the ground
Attaching fancy graphics to assets
Commenting the code

Download the package with my modifications and you are a Box2DFlashAS3 guru and want to publish the next step, you’re welcome… or wait for me to do it.

Never miss an update! Subscribe, and I will bother you by email only when a new game or full source code comes out.