Using the Image Manipulator for level loading

This example shows how you can use images and the Image Manipulator to load a level in an Arkanoid clone.  The example covers the following:

  1. Loops
  2. Using the Image Manipulator
  3. Private Variables
  4. Ball Behaviour
  5. 8 Directional Behaviour
  6. “For Each” Event

The example is suitable for beginners and more experienced users.  It is also only half a game.  There is no lives system, scoring system or a way to load a new level.  For practice you can add all this to the game and feel free to send me the results.  More information, screenshots and the download link can be found in the full post.

If you want to add your own levels simply create a 32×32 bitmap image in the Levels folder and name it “1”.  When creating your level/image to make areas transparent use the colour 239,228,176 when this colour is present no block will be created by the game.  And you’ll end up with like the screenshots below.

 

A level loaded from a Bitmap file

 

Another level created from a Bitmap

DOWNLOAD (zip)

Advertisements

About MrFlibble78

Very lazy and not very talented wannabe freeware game developer.

Posted on March 12, 2011, in Snippet and tagged , , , , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: