N
N
Nick20152016-04-11 21:02:20
Android
Nick2015, 2016-04-11 21:02:20

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

1 answer(s)
A
Alexander Dorofeev, 2016-04-12
@Nick2015

I looked. In the first case, for some reason I didn’t see public SpriteBatch batchit, 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 question

Ask a Question

731 491 924 answers to any question