Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm looking in to developing a game editor - essentially a level editor for my game but a little more advanced i.e edit menus and loading screens and what not.

So far, I have come up with a data-driven model as the basis for this, with information possibly being stored in a binary format/xml. I could then have the actual game load up scenes based on this information (main menu, level select, loading, level1 etc).

My main problem at the moment is how to handle my game logic. How can I link together level/scene logic that I'll want to add - for instance if I want the user to answer a question - with all the data I've got stored for the scene (background/terrain sprites, enemies etc)?

My game code will currently consist of classes for a scene, npc, other objects etc + the loading code for loading scenes, but not too much else.

To summarise, given the described architecture of my game, how can I appropriately handle my game logic? Furthermore - is a similar pattern to what I'm trying to do used in industry? If not - how exactly is the editing/construction of menus/scenes handled?

share|improve this question
2  
Look at some other game editors, and pick and choose what you like. I personally like Unity's model, where you attach behavior components to scene objects, and then link them together via the object's Inspector menu. – tyjkenn Mar 17 at 2:14

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.