Jump to content
  • Advertisement

Archived

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

wise_Guy

Surrounding game engines

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

How do people here generally manage their games? How do you structure your games, from menus to in-game and back again? Do people have a variable, such as game_state, and do various things based on that? I''m not sure myself, but I''m interested in what other people do... wiseGuy

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by wise_Guy

How do people here generally manage their games? How do you structure your games, from menus to in-game and back again?

Do people have a variable, such as game_state, and do various things based on that?




I simply use OOP principles.

Define some abstract classes, then refine them according to the different task your application have to do. Modifing a single pointer content you can switch from one state to another.

It''s worth to note that you have not to exceed this way or you''ll get kinda low performaces.

That''s the power of polymorphism.


Bye,

Karmalaa

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!