I'm planning to develop a trivia game where you start with a roulette screen to choose the category of the question, then you move on to the actual question, and then you go back to the roulette, until you either lose (by failing three questions) or you win (by answering all of the questions correctly). When the game is over, you go to a new screen, which shows you your results (number of questions answered correctly, for example). I'm not sure about how the architecture should be.
These are my two ideas:
- Divide the parts of the game in different Activities (MainActivity, RouletteActivity, QuestionActivity, ResultsActivity).
- Divide the game in two Activities: MainActivity and QuizActivity: the QuizActivity contains Fragments for the roulette, question and results.
Should I use one of this two patterns, or is there a better approach?
Aucun commentaire:
Enregistrer un commentaire