28 March 2021

Scaffolding: Progress Review

The game controller idea that I decided to go with was actually not any of my initial three ideas but rather a mixture of all of them. The game I will be using the controller for is the world's oldest game, chess. More specifically, I will be playing online chess and I will be using two potentiometers in order to move the mouse. One will move the mouse up and down while the other will move it side to side. Not too differently from how the knobs work on an etch-a-sketch. Finally the player will need to click on the piece they want to move and the square they want to move it to which they will be able to do by using an actual chess piece from a board that I have order and tapping it on a sensor on the controller. 




#include <Adafruit_CircuitPlayground.h>
#include <Adafruit_Circuit_Playground.h>
 
//Variables for Potentiometer 
//Circuit state boolean

 
void setup() {
// put your setup code here, to run once:
}

void loop() {
//get current mouse position 
//if potentiometer A turns right, cursor moves right
//else if potentiometer A turns left, cursor moves left 

//if potentiometer B turns right, cursor moves up
//else if potentiometer B turns left, cursor moves down

//if chess piece is placed on stand/metal is touching, initiate left click  

}

Question 1:

Is there any other function that you think I should add to my controller?

Question 2:

Do you like the way the king is being used in the controller or should he be used differently? if so, how? 

 

No comments:

Post a Comment

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