• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

This topic is now archived and is closed to further replies.

jtecin

Creating a Level/Map Editor

11 posts in this topic

My recommendation would be to create two DLL's (possibly in C++), one for data manipulation (I.e. a "librarian") and one for visualization (using DirectX in a window), and then glue it together using e.g. VB.

I wrote the editor for my game using the normal windows API and DirectDraw (no MFC), but the UI is not as friendly as it could have been, and I found myself spending way too much time doing simple things that would've been a given in VB...

/Niels

0

Share this post


Link to post
Share on other sites
Good idea, but i don't know how to make dll's and use them in vb. Is there any article on the net about dll's and vb?
0

Share this post


Link to post
Share on other sites
To make DLLs look in the help online of VC++.
To use DLLs in VB there are two ways:
1) if the DLL is an ActiveX Automation Server, just go in the references and add the .tlb, the objects will be available to you with no prob.
2) if the DLL is just a plain, ol' happy DLL, use:
code:

[Public | Private] Declare Sub Lib "" [Alias ""] [([arglist])]


Where is the name of the function you want to use, is the actual name of the DLL, and is the actual name of the function as is in the DLL. You use the when the would clash with a VB keyword, or another function.
code:

Declare Sub First Lib "MyLib" (X As Long)


Now, I suggest you get the help online of VB and read it, along with a book on VB.
0

Share this post


Link to post
Share on other sites
As for your "visualization" DLL, as someone so nicely put it, I would _seriously_ recommend using the same code that drives the graphics in your game, only in windowed mode. This way, you get a WYSIWYG map editor that ALSO will expose errors in your graphics engine and provide a nice platform to get started.

VB would be a nice way to make the map editor IF you already had the graphics engine in modular form. However, most game programmers hard-code / mush everything in their game together and thus separating the grpahics engine from the rest of the game might prove difficult.

If you want to take the time, all a map editor really is is your game with movable / insertable pieces and no "game" logic. So basically, build a game that is the map editor. Or use VB. Or use MFC - yuck ;(

- Splat

0

Share this post


Link to post
Share on other sites
So, are you saying we should have the game
ready(interfaces, logic,...) and use it to
combine with MFC or VB for "friendlier"
UI on our map editor?
0

Share this post


Link to post
Share on other sites
That's essentially what we plan to do, take our engine code, and place it into an MFC driven app w/ ddraw, just to give it a nice interface.
0

Share this post


Link to post
Share on other sites
You can create very easy to use editors without MFC or VB, and the resulting editors are significantly smaller and faster.

As mentioned, you should make the editor pretty much wysiwyg, and as easy to use as possible, unless of course you plan on using it.

Recently when I gave my editor to someone who is going to design levels, they just couldn't "get it", So I went back and spent a day or two to make it very visual and give instant feedback.

Every feature you add, or hour you spend making your editor easier to use and more powerful, means the resulting levels or maps will be that much better.

0

Share this post


Link to post
Share on other sites
I too grappled with this problem. Initially i choosed to write a simple GUI, very similar to the gui described in the series of articles on gamedev :
http://www.gamedev.net/reference/programming/features/gui/ http://www.gamedev.net/reference/programming/features/gui2/ http://www.gamedev.net/reference/programming/features/gui3/ http://www.gamedev.net/reference/programming/features/gui4/

But then, after doing more research into the win32 api, not MFC which also uses the win32 api, I thought it would be useful to intergrate the functionality of the api with my gui. That's what i did, now i have the functionaly of prebuilt windows components and dialogues, and the WYSIWYG compabilitiy with my existing engine through the legacy gui code. IF i had to do it over, i would proably still choose this route as having WYSIWYG (What you see is what you get.) funtionality is critical to effective level designing, i feel. Good Luck!

-ddn

0

Share this post


Link to post
Share on other sites
Okay, I finished my map editor for the most part(woohoo!). I already had a graphics engine written so I just used DirectX. The only problem I have now is saving. I have it so it will write to the file and load properly, but I want the *user* to be able to choose what file to save it to. I was going to use a dialog box, but here is my problem:
I can use MFC to create a dialog box during a regular windows application, but how do I get info and stuff from a dialog box in this case? I used my game skeleton to make the map editor, so it is constantly flipping the surfaces.
0

Share this post


Link to post
Share on other sites
If it's not too much trouble, just DlipToGDISurface when you display the dialog box and set a (global) flag to switch off page flipping until the dialog box is done. This is how most DirectX games handle Windows dialog boxes.

- Splat

0

Share this post


Link to post
Share on other sites
Okay, the next step in my game is to make the map editor. I was wondering what people think I should use to make this? I was going to use DirectX, but I don't need the speed and it would make it more complicated than it needs to be. MFC would also make it too complicated. I want to use traditional style windows programming, straight API calls, but I don't know how to do things such as load and display bitmaps. Does anybody know a site or something that goes over this? Thanks.
0

Share this post


Link to post
Share on other sites