Jump to content
  • Advertisement
Sign in to follow this  
beebs1

Design Question

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

Hiya, Every time I try to come up with a good design for an engine, I end up with a top-level 'Engine' interface/class. I really don't like this, as it means that all the engine components are very tightly coupled. Without this 'manager' to hold everything together, the coupling is much better but I can't see a way of doing some things - like having the engine run different subsystems on different threads. I've looked through these forums, but everyone seems to use the 'Engine class' method. I was wondering if anyone could suggest a better design, maybe something that has worked for them in the past? Many thanks for any help [smile]

Share this post


Link to post
Share on other sites
Advertisement
If you try designing an engine, then it's pretty much a given that you're going to end up with an engine class. After all, wouldn't you think it was pretty strange if you tried modeling a toaster and didn't end up with a toaster class? If you want to get rid of the engine class, try designing a game rather than an engine.

Share this post


Link to post
Share on other sites
I would argue that it's better to build your game ontop of your engine rather than take the engine out of the archetecture completely (if that's what you were suggesting). Just don't couple your engine components. Make sure they are modular.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!