28 March 2021

Scaffolding: Progress Review

 My controller is for the game Downwell. The concept behind this controller is to map the basic actions of the game to their corresponding real life movements. Since the character in the game can move left, right, and jump, I want the player to also be moving the same way. This way, the player will feel more strongly the tension and excitement that they would normally feel when playing the game. To achieve this, my controller will have two main parts. The first part is composed of two sheets of cardboard separated by two simple springs. The two sheets will each have a section of aluminum foil so that when the player stands on top, the two sheets will press together and complete a circuit. When the player jumps and this circuit is broken, the game character jumps. The other part is an accelerometer attached to a vest that the player wears. This will detect when the player leans left and right which will move the game character left and right.






//Chris Tillis
//libraries
#include <Adafruit_CircuitPlayground.h>
#include <Adafruit_Circuit_Playground.h>
#include <math.h>

 

//Global Variables for accelerometer
//Cicruit state boolean
//Threshold for accelerometer values

 

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

void loop() {
      //Get tilt value of Accelerometer
      //Map voltage output of circuit to 0 or 1 and save to variable
      // If Accelerometer is positive above threshold, move character right
      // If negative below negative threshold, move character left
      //If circuit is not complete, make character jump
}

What are some ways to make sure that the player doesn’t break the jump detector or trip over any wires?

Should the player be doing something with their hands instead of wearing an accelerometer?




No comments:

Post a Comment

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