15 March 2026

Scaffolding: Progress Review - Team 1

    For our final project, we have decided to proceed with a controller for the arcade game Mario Bros. It will use a potentiometer to control the player’s left and right movement, a switch to control the player’s jumping and crouching, a sound sensor to control the player’s running, and a button to begin the game. Our controller focuses on bringing parts of the game world into real life- the main aspect of it looking like a pipe, connecting to both the visual elements of the game and the characters’ work as plumbers. The remaining inputs follow this logic and are shown as different parts of the pipe. For example, the potentiometer is shown as a valve wheel on the pipe, allowing it to turn back and forth for movement. The switch is shown as a nut and bolt to the player, allowing the player to turn it up and down with a wrench, a piece not in the game, but again part of their work. Finally, the button is shown as a POW block on the top of the controller, allowing players to hit it to start the game. If shouting into the POW block, the character will run instead.


    Pseudo-Code:
control Mario Bros game

create a switchPin variable and set it to A3

create a buttonPin variable and set it to A1

create a potPin variable and set it to A2
create a potValue variable and set it to 0

create a micCheck variable and set it to the microphone

set the potValue to what potPin reads

create a switchState variable and set it to false
create a buttonState variable and set it to false

if the buttonState variable is true
  the game starts

if the switchState variable is true
  the character jumps
else if the switchState variable is false
  the character crouches

if the potValue is less that 341
  the character moves to the left
else if the potValue is between 342 and 682
  the character doesn't move
else if the potValue is above 682
  the character moves to the right

if micCheck is above 75
  the character runs

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.