Build 10 games and learn game development along the way in this fast paced game development course

Get the source code of 12 commercial games, loaded 50+ million times, and learn the secrets of game design

Learn how to make a successful Flash game from a real world example. Fully commented source code

Create realistic Flash physics games from scratch with advanced features, from Angry Birds to Crush the Castle

Totem Destroyer prototype made with Dreemchest

Do you remember Dreemchest? It’s an amazing 2D development engine packed with features I blogged about some time ago.

Meanwhile Dreemchest evolved and got a bunch of new features, and now the first Dreemchest-powered game, Match them All, has been released on the App Store.

Do you want to have a brief overview of Dreemchest capabilities? Let’s see how to crate a Totem Destroyer prototype in just a few steps. The aim of the tutorial is to create some physics crates destroyable with a mouse click, using the WYSIWYG editor.

First, we want to create a standalone project, which is an executable file to be run on the computer. Let’s enter the resolution and the project name.

We need some graphics, so in the Assets panel let’s start to import assets.

A large brown bar will be our ground, so we are placing it at the very bottom of the stage.

It’s just a PNG image at the moment, so we need to create a physics body which will represent it. In the Assets panel let’s create a shape.

Which kind of shape are we going to create? A rectangle

We assign the newly created shape the same size of the PNG ground

Now that the ground physics body has been created, drag and drop it onto the PNG image to bind physics body to the image.

And we are done with the terrain. The creation of the blocks will require just a little bit of scripting because of the mouse listener.

Create a new script

Which will contain this lua code:

It’s now easy to load the new crate asset and assign it the bmpCrate class and the physics shape with shCrate class.

At this time, just drag and drop the class on the stage and you will create physics driven boxes which will disappear on mouse click.

This is how your main project will look when you’re done:

As you can see, with Dreemchest you can easily create games with basic scripting and a WYSIWYG editor. Download the project source code or the final Windows exacutable.

Rate this post: 1 Star2 Stars3 Stars4 Stars5 Stars (8 votes, average: 4.88 out of 5)
Loading ... Loading ...
Learn how to make a successful commercial Flash game from a real world example: get the fully commented source code of Globez, a Flash game played millions of times which generated a four figure income. Limited copies available.

Get it now
Be my fan on Facebook and follow me on Twitter! Exclusive content for my Facebook fans and Twitter followers

This post has one comment

  1. Lennard

    on September 19, 2013 at 2:34 am

    The Dreemchest website is woefully short on info. What they are promising is compelling but soon they will have to contend with Unity 2d which will hit the same platforms but also include a web player.

Thank you for the download!!

I hope you will find it useful and make something interesting out of it

To keep up to date with the blog, why don't you like my Facebook page and follow me on Twitter?

Want to learn more? Don't miss this:

Learn how to make a successful commercial Flash game from a real world example: get the fully commented source code of Globez, a Flash game played millions of times which generated a four figure income. Limited copies available.

Get it now

×