10 March 2025

Final Team 12 Progress Review

We decided to move forward with a suitcase inspired controller for the game SpeedRunners. This was our most thematically involved idea that also has a control scheme that will be beneficial to the player. The suitcase is modeled after the black and red suitcases that can be found as obstacles in-game. Should the player not grapple over or avoid the suitcase in some way, their character will trip over it, losing lots of momentum. By making this the controller, players and fans of the game can handle the suitcase in a way that isn’t to their detriment, but their benefit. We are planning on 3d printing the black and red sections of the controller separately, sanding them down and joining them via strong adhesive. It will not be the size of a real suitcase, but will be large enough to comfortably house all necessary components as well as comfortably be handled by the player.




Pseudo Code:

#include <Adafruit_CircuitPlayground.h>

#include <Adafruit_Circuit_Playground.h>

#include <Keyboard.h>


void setup() {

  // initialize Circuit Playground

  // initialize pins for potentiometer, 2 distance sensors, and toggle switch

  // initialize keyboard library


}


void loop() {

  // read potentiometer value

  // Map to a range for left/right movement

  // if value is less than half, press left on keyboard

  // if value is more than half, press right on keyboard

  

  // if first distance sensor covered, press E on keyboard to use item

  // if second distance sensor covered, press Shift on keyboard to boost


  // if toggle switch on ON position, press W on keyboard to use grappling hook


  // read accelerometer value

  // if y value is greater than 1 (controller flicked up), press Space on keyboard to jump

  // if y value is lower than -1 (controller down), press S on keyboard for 3 seconds to slide


  //delay to prevent rapid keypresses

}


No comments:

Post a Comment

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