Jump to content
  • Advertisement
Sign in to follow this  
comwiz920

Separating Engine from Game Code?

This topic is 3922 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, I've made a few small 2d games with OpenGL, but I want to make a 2D tile engine. One of the things that has been perplexing me though is how to separate engine code from game code. DLLs and Static libs are possibilities, I know what should be included in the lib or DLL, but I just can't figure out how to combine them. Not in a literal sense, but from a programming standpoint. Any pointers?

Share this post


Link to post
Share on other sites
Advertisement
Think about it...your game is basically just engine + content. If you define your content in a flexible format, then there won't be a need for any code that isn't engine code. You're going to have content files that represent all the items, levels, etc...and any programming that is completely specific to the game (ie, Joe Shmoe doesn't give you the key to the door until you bring him an apple) can be scripted, and built into the content pipeline.

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!