Answer the question
In order to leave comments, you need to log in
Which approach is more efficient? Game project structure?
Which structure will be more effective in organizing a project with a game.
There is a certain video blogger , and such material.
In the first case, a public SpriteBatch is created in the main class of the game, in the second, a certain GameWorld class is created where textures are transferred, and other objects open there. Perhaps the question is stupid, and there is no difference, or it is, but not significant and does not affect the efficiency of the robots, only for the voice more pleasant, but I would like to hear it ...
Answer the question
In order to leave comments, you need to log in
I looked. In the first case, for some reason I didn’t see public SpriteBatch batch
it, there’s not even an access modifier there, that is, access within the package .
For me personally, none of these methods is ideal. But the second architectural option is clearly better. Less code in each class, more convenient support in large projects, Single Responsibility Principle and a bunch of other pluses.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question