Answer the question
In order to leave comments, you need to log in
Game architecture. How to separate the menu from the game loop?
Hello.
My question is for professional developers who know what, how and why.
I am familiar with the basics of C#. Including OOP.
There are difficulties with understanding delegates and events, i.e. how it works.
I'm planning to write a game. No Unity, Win Forms or Monogame. Start simple.
And here on simple, the question arises!
There is a menu. Let's say 3 points. Play, "Settings" and "Exit".
How to separate all these 3 cycles? Main menu, settings menu and game loop?
In Python, I wouldn't bother, but in C#, the model is OOP, and you have to do it the smart way.
How? And most importantly, what is the right way?
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question