23 October 2024

Scaffolding: Progress Review Andrew Swanstrom and Jackson Sommer Minesweeper Controller

Scaffolding: Progress Review

Andrew Swanstrom and Jackson Sommer
Minesweeper Controller

Description:
Our controller is for the game Minesweeper. The controls of that game are fairly simple; the player moves the mouse and left and right clicks to dig up a space and place a flag, respectively. Our controller has two knobs to move the mouse across the screen, and then, more thematically, uses two pucks to dig up a space or place a flag on to that space. One puck has a flag on it to signify that you are placing a flag, and the other has a shovel on it to signify that you are digging up that space. These pucks have copper contact points in specific spots to produce these inputs, as well as a triangular key making sure that the player can only use a specific puck to produce a specific input. We think that this controller really emphasizes the game’s mechanics of flagging and digging up spaces; it makes it seem more realistic, since the player is actually placing a flag or a shovel on to the space. 

Sketch:
Schematic:
Pseudo Code:

Setup function: 

Declare two switches and two adjustable resistors 

 

Update function: 

Set mouse X to a mapped value of adjustable resistor A (Knob A) that relates more properly to the dimensions of the minesweeper play window 

Set mouse Y to a mapped value of adjustable resistor B (Knob B) that relates more properly to the dimensions of the minesweeper play window 

 

If switch A is true then left click (Shovel copper tape made contact) 

If switch B is true then right click (Flag copper tape made contact)




No comments:

Post a Comment

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