Currently, I’m on a project for making a 2D quiz game with multiple random questions and answers, and it also had audio for each question, so it is like a quiz with a host explaining the question.
I am wondering is there any efficient way for this kind of game, because I don’t think what I’m doing here is efficient. The best I could think of is having a class to store questions, answers, and audios, and repeat that process for each level? I don’t know, maybe someone knows the way better.
I’d use a ScriptableObject that contains everything to do with a question:
- the text quesion
- the possible answers
- any audio
- any graphics
Once you get one of those created, make something to show it, collect the user input, evaluate it, and be done.
The you can hire 256 content creators and have them make millions of instances of questions like that and the code never again has to change.
1 Like