Surrounding game engines

Started by
0 comments, last by wise_Guy 23 years, 11 months ago
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
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
---[home page] [[email=karmalaa@inwind.it]e-mail[/email]]

This topic is closed to new replies.

Advertisement