I wasn't able to show my prototype to another user so I'm going to include a detailed showcase of what my project is supposed to do and all of it's functions. I designed a simple video game where the user has a potentiometer and 4 buttons to capture the circles that are falling from the sky inside the character's "box".

On the breadboard, there is a sensor, the potentiometer,
that moves the main character. When the user turns
the potentiometer, it corresponds with the character so if it's turned to the left then it moves the character to the left of the screen and when it's turned ot the right it moves to the right side of the screen. There are also 4 colored buttons on the breadboard that correspond with the circles that fall from the top of the screen and match the same colors that are on the screen.

When the game starts, an alert will pop up on the screen going over the directions and make sure the user is ready to play. Once the user clicks "ok" on the alert, the game starts. The goal is to catch as many balls in their box as possible. The user use the potentiometer to move the character across the bottom of the screen to catch the circles. As long as the circles are caught within the parameters of the box the user will receive a point for each circle the user catches. The color of the box also has to match the color of the falling circle. The user can change the color of the box by pressing the corresponding colored button. If the color of the box doesn't match the color of the circle then the game is over. The more circles the user catches in the box the faster the circles start to drop from the screen. The speed of the circles slowly increases until the user misses catching a circle and then the game ends with an alert. If the user wants to play again, they just have to click "ok" on the alert and the game automatically restarts. This is also depicted in the instructions of the alert.
This is a video of what is supposed to happen during the game. It uses the mouse to control the character, but it still has the main idea of what is supposed to happen.
I want to eventually create some levels in this game where once the user collects a certain number of circles then they can move onto the next level where the starting speed of the balls gets increasingly faster the more levels the user goes through, but I'm still working on connecting the first level to the potentiometer. I did include the code here with the mouse-controlled game that I was able to connect an extra level to and you can see more of what I want to accomplish. If the user collects 20 circles in the first level of the game, they have the option of moving on to the second option or quitting the game. If they move on to the second level, the starting speed and the incremental speed of the circles increases from the previous level, but it's still the same premise, the user has to catch circles at the faster rate to complete the level. If they collect 20 circles at this level then the user win's the game.
Comments