Before we go ahead and jump into unity, let's look at our game design document because this is really
going to keep us on track and keep us focused on the game we're trying to build.
And the first stage of this, for me at least, is to understand the concept of the game we're trying
to create now.
We're going to be building a quiz game, and for our quiz game, we're going to be getting the player
to answer a set number of multiple choice questions, and each question is going to have a limited amount
of time to be answered.
This will put a little bit of pressure on the player and also prevent them from just going off and Googling
the solution.
And crucially for our game, it's going to be very UI focused gameplay.
So we're not going to be moving characters around the world and worrying about all of that.
Instead, we're going to be looking at the UI.
So things like text fields, buttons, images and all of that kind of thing.
So if that UI focus in mind, let's have a look at some of the screens that we're going to have to build
to make our game run.
First off, we're going to have the question screen and this is going to have a text field where we're
going to put the question.
We're going to have a number of multiple choice buttons for the player to click on.
And we've also got some other stuff that we need to think about.
We've got the skull up in the top left corner here.
So that's going to show how well the player is doing any given point.
We're going to have a timer in the other corner and this is going to tell the player how long they've
got left to answer any given question.
Then down at the bottom, we have this long progress bar.
And this is going to give the player some kind of indication of how far through the quiz they are.
Now, once the player has clicked on one of these answers, we then need to worry about giving them
the solution.
So that brings us onto our next screen, where we're going to actually repurpose our original question
text box and make it a confirmation text box instead.
So this will tell the player if they got the answer correct or incorrect.
And I think it would be nice if they got it wrong to tell them what the correct answer is.
And in that same vein, we're also going to use some highlighting to show the player which answer was
correct.
Now you may notice that this screen looks incredibly similar to the last.
So rather than making an entire new canvas just to show the answers.
I actually think it would be a good idea to repurpose the question screen instead.
This will make our game much easier to manage and we can essentially cycle back between question and
solution as many times as we like.
But once the player has answered all the questions for our quiz, then we are going to need to change
things up a bit and go to a win screen or an end screen, if you like.
Here we're going to tell the player congratulations and give them their final score.
And we're also going to give them a button to give them the option to replay.
So with all of that in mind, let's go through the game mechanics that we're going to need to build
when we jump into unity.
First of all, we're going to need a mechanism to store and retrieve all of our questions.
We're going to need buttons so the player can select the right answer.
And if we want to put some pressure on the player to answer the question, then we're going to also
implement a simple timer.
We're going to need a progress bar to show how many questions the player has remaining in the quiz.
And we're going to use something known as a slider for that.
We'll need a simple scoring system to show the player how well they're doing.
And finally, we're going to need a way to restart the game when the quiz ends.
Finally, let's ask the three big questions for our game.
The first being, what is our player experience going to be?
Well, for a quiz game, I quite like the player to feel knowledgeable and intelligent.
So for my game I'm going to have a lot of positive affirmation and congratulation messages.
But you could also go the other way.
You can actually make the player feel less intelligent by berating them for getting answers wrong and
generally just being a bit silly with it.
So even though it is a quiz game, we don't necessarily have to make the player feel good about themselves.
For the core mechanic, it's really going to be a test your knowledge kind of game.
So I'm going to be using this as a kind of studying tool, as it were.
And finally, our game loop is going to be to answer a set number of questions on a given topic within
a set amount of time.
So with the game design document all set up, it's now time for a quick challenge.
Let us know what your quiz is going to be about.
So what topics do you intend to cover?
This could be anything from ancient history to pop culture to your favourite band.
For my particular game, I'm actually going to go with an educational based quiz and I'm going to ask
questions about Unity and C-sharp to help people study.
So once you've come up with the topic for your quiz and written your game design document, please do
share it and I'll see you in the next lecture where we actually jump into unity and start to build it.
So I'll see you there.