26 November 2023

The "Huddle" Controller

 


Hi, so for this project I decided to take inspiration from the game, "Inside" and created a controller designed around the final creature encountered in the game known as "The Huddle". I chose this because over the games lifetime many theories about the game have been created and a major one being that the main character you play as is actually controlled by this final creature so I found it fitting for that to be what controls the character in the game. The controller is made out of polymer clay and I chose this because I feel that it was what most closely resembled the creatures very malleable texture. I also have it to where the various arms, legs and heads can fall off during gameplay as just like in the game, these various limbs fall off the creature as it moves. Unfortunately, due to a lack of space to work with within the "Huddle" I was unable to connect the circuitry that would correlate to the different jump and grab mechanics. However, if they were successfully implemented, the player would use a flashlight in order to activate the light sensors and correlate to that button being pressed. I designed it this way to replicate how the player character is always being searched by light sources so using light felt essential. 

#include <Adafruit_CircuitPlayground.h>
#include <Adafruit_Circuit_Playground.h>
#include <Keyboard.h>

void setup() {
  // put your setup code here, to run once:
  Serial.begin(300);
  while(!Serial);
  CircuitPlayground.begin();
  Keyboard.begin();
}

void loop() {
  //Read Acellerometer x and y
  Serial.print("\t");

  float x = CircuitPlayground.motionX();
  float y = CircuitPlayground.motionY();
  Serial.print(x);
  Serial.print("\t");
  Serial.println(y);

//Controls movement to the right
  if (x >= 3) {
    Keyboard.write('d');
  }
//Controls movement to the left
  if (x <= -3) {
    Keyboard.write('a');
  }
}

 


No comments:

Post a Comment

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