Jump to content
  • Advertisement
Sign in to follow this  
pi_man

Map editor

This topic is 4043 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am new to game programming and have been trying to make my maps by writing out 2 2d arrays and using loops to fill them in(which is really ineffective). for my next project i wanted to make a horizontal scroller. so, as making some arrays to fill all these out would take waay longer than to program the rest of the game! anyways the point of this post is to ask if anyone knows any free map editors that are easy to use and import into an allegro project. help would be greatly appreciated.

Share this post


Link to post
Share on other sites
Advertisement
Use Mappy. Use the documentation provided and export the mapyou make as a "Comma seperated value" aka .cvs format. Copy the file and paste it on to your source code. You will not be able to load a map directly into allegro just like that, you will have to do some programming. Here is an example:

int Map[200]
{
//Paste the code here
100,100,23,30...
}

Now you do the engine.

You can do the engine by making a bmp file containg all the tiles and then blitting them by frames (like some people do it with sprites).

A book that covers this in one chaper is "Beginning DirectX programming" by Jhonatan Harbrou. This book also covers 3D programming and I really recommend it.

Share this post


Link to post
Share on other sites
okay, thanks. i just picked up one called "tile studio" do you guys know anything about it?

Share this post


Link to post
Share on other sites
okay cool i got mappy and am using it.

when i exported it as code down the bottom i got this:

const unsigned short dungeon map_cmap[256] = {
0x0000, 0x3803, 0x0180, 0x008C, 0x498C, 0x65C0, 0x0222, 0x036A,
0x7660, 0x0055, 0x001B, 0x31BD, 0x023B, 0x03BF, 0x4676, 0x7FFF,
0x00C0, 0x0120, 0x0180, 0x01C1, 0x0222, 0x02C6, 0x036A, 0x008C,
0x0154, 0x023B, 0x02BD, 0x033E, 0x03BF, 0x1C63, 0x2CC6, 0x3929,
0x498C, 0x4611, 0x4676, 0x5EF8, 0x7FFF, 0x002E, 0x0013, 0x0018,
0x001D, 0x18DC, 0x2556, 0x31BD, 0x465F, 0x4520, 0x65C0, 0x6E00,
0x7660, 0x7F00, 0x5D13, 0x54F2, 0x4CD0, 0x44AE, 0x7C1F, 0x7C1F,
0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C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1F, 0x7C1F, 0x7C1F,
0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F,
0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F,
0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F,
0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F,
0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F,
0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F,
0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F,
0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F, 0x7C1F
};

what does this mean?

Share this post


Link to post
Share on other sites
Those are just the values of your map tiles, written in hexadecimal instead of decimal.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!