Jump to content
  • Advertisement
Sign in to follow this  
feiyurainy

[.net] a question about the editor in game programming

This topic is 5093 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

Hi everyone, I want to now if there is a better way to make a game editor under .net platform, for example,world editor or model editor. I don't want to use the MFC to make it. thank you

Share this post


Link to post
Share on other sites
Advertisement
you could always use window forms, or, (though i know nothing about them) look up WTL and ATL (those should be similar to mfc iirc) but i dont know for sure to tell the truth
-Dan

Share this post


Link to post
Share on other sites
.NET is (and will get even) better than MFC. Coding style & development time are superior. Plus, .NET can be used in multiple languages.

Share this post


Link to post
Share on other sites
In .NET you use Windows Forms and not MFC (I supose it is possible to use with p/invoke, but that would be plain dumb).
If you don't have VS.NET try SharpDevelop it has the same nice forms designer.

Share this post


Link to post
Share on other sites
Quote:
In .NET you use Windows Forms and not MFC (I supose it is possible to use with p/invoke, but that would be plain dumb).


No, it may be useful to integrate a user control built with MFC.

Share this post


Link to post
Share on other sites
Maybe so, but using MFC for building windows, buttons and the like is simply wrong (in .NET of course)

Share this post


Link to post
Share on other sites
You can easily make a real-time editor with Windows Forms. Just disable your game Update() function when you're in "design mode", and then in "test mode" just re-enable it.

For example, you could drag a bunch of objects from the editor into your map, then switch to FullscreenMode in DX to test out the map. Just disable Application.DoEvents(), and redirect your input to DirectInput.

Share this post


Link to post
Share on other sites
There are some useful techniques, but there are some drawbacks as well. I've found rendering to a PictureBox control using Managed DirectDraw and Direct3d dead easy, for example. On the other hand, trying to specify multiple render targets as with UnrealEd isn't any easier, and you end up having to manage the rendering surfaces yourself. This isn't specifically harder, but it does seem to be a little more painful than the MFC version of things.

It is a LOT easier to add widgets to an editor, however. The Windows Forms interface is pretty much as sweet as you could possibly want it to be, and delegates provide an excellent way to hook multiple events to a single source. This, I think, is a more useful metric of the usefulness of the environment. There is no comparison in the GUI capabilities present in C#/Windows Forms versus C++/MFC.

ld

Share this post


Link to post
Share on other sites
Oh thank you all of you.
I will start to learn the .net framework these days,and start with learning c#,and then windows form.

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!