Trivia Game: Grace Hopper

The goal of this game is to have a player move around the screen and interact with other objects on the screen. As the player touches another object, the player will be prompted for a trivia question. The player is then given the opportunity to earn points by typing in the answer for the question. There will be 5 questions and 5 correct answers.

Create a new planning page in your notebook.

Write down how many sprites and how many variables you think the program will use. Make sure to write down the names for each sprite and variable.

Step 1

Create the player sprite. Recall that this will need to be in the on start block. Make sure to pick a player costume for the player.

In addition to creating the player, this game will have an additional feature that previous games did not have. This game will give the player the option to change their costume as they play the game by using the A and B buttons. Here is how that could work:

Step 2

Create the additional sprites. Each question will need its own sprite (that means 5 additional sprites). When creating the sprite, you can pick the type of the sprite. In this game, you will create a new kind of sprite, named ‘Question’. By doing this the game will have 1 player sprite and 5 question sprites. Make sure to put the question sprites in different locations on the screen. Here is an example of what this could look like as the game gets started:

Last updated