Advertisement

This is going to sound bad, honestly...

Started by October 06, 2002 10:02 AM
3 comments, last by beaner 22 years, 1 month ago
I was afraid that what I am about to ask was going to sound like a TERRIBLE newbie question, so I put it in this thread. Hopefully you guys can find it in your hearts to point me in the right direction. Here goes... I''ve been spending most of my time programming in DirectX, and have not done much Windows programming at all. The trouble now is that I need to make a tile map editor and it is driving me crazy! It would be easy if I had surfaces to work with, but I want my editor to be in a classic window (using MFC OR Win32 API). So my question is, where the hell can I find relevant information on writing the simplest tile editor using MFC or the Win32 API (preferrably MFC)? Thanks in advance!
I know this probably isn''t helpful, but...
if you really feel comfortable with DirectX, then make the editor using DirectX! If you do that, you could even include it ingame for more expandability.

Otherwise, I''d suggest winprog.org for win32programming stuff.

--SuperRoy

[ www.Google.com ][ FlipCode IOTD ]
[ Email Me ][ WhitespaceUnlimited ]
Sup guys?
Advertisement
Yes, it was helpful. I would do the editor in DirectX, but I would rather make it into a windows program because I need the practice, I am a neat freak, and I haven''t done much gui programming in DirectX either... The site you listed gave me a little help, and I made a little progress. Thanks!

However, I now have a more specific problem:
I decided on using DirectX in a windowed mode. So, I made 3 surfaces - The primary surface, the buffer surface, and the map surface which is very large and will hold the entire map. I loaded a tileset using TANSTAAFL''s CTileSet class, which has 256 tiles. Then I made my array, like this:

UCHAR MapTileData[MAPWIDTH][MAPHEIGHT];

I then filled each position of the array with a random number to represent a random tile from my tileset.

Now, the question is, how do I look at each position of the map array and put the appropriate tile at the appropriate position on my map surface?

Also one more question:
when I use WS_MAXIMIZE in my CreateWindowEx() function, why the heck doesn''t it work?

Thanks!
There is a free 2d map editor that comes with source out on the net called mappy. It''s done in regular windows code (no MFC) but it''d be a starting point for the answers to most of your questions. here is the link: http://www.geocities.com/SiliconValley/Vista/7336/robmpy.htm
Thanks, I''ll check it out

This topic is closed to new replies.

Advertisement