23 October 2024

Progress Review: Fighting Game Controller

Alec Prestoza and Chris Medina (Team 12)
Game: Mortal Cage Fighter

Description:

The alternative controller will be a glove that will be suitable for a simple fighting game called Mortal Cage Fighter. It is a workout glove that we can attribute to physical activity such as fighting or being strong. For how it works, you will wear the glove and have your hand be in a closed fist and level, in space, at around chest level in relation to your body. To move left and right in game, you either stick your thumb or pinky out. To jump, tilt your hand up. Point your index finger out to punch, and your index finger plus middle finger to kick. We can combine these inputs to do a couple of Special Moves (in the game, you press left, right, and punch/kick to execute them).


Sketch:



Schematic:



Psuedo Code:

//Alec Prestoza and Chris Medina (Team 12)

//Final Project

//Game: Mortal Cage Fighter


void setup() {

  // put your setup code here, to run once:

  //read accelerometer y


  //***set up variables for the following:

  //thumbLED;

  //pinkyLED;

  //indexLED;

  //middleLED;

}


void loop() {

  // put your main code here, to run repeatedly:

  //if accelerometer y is greater than or equal to 5, player jumps


  //***extending a finger will turn its designated LED on

  //if thumbLED is on, move left

  //if pinkyLED is on, move right

  //if indexLED is on, punch

  //if indexLED and middleLED are on, kick

  //if leftLED, rightLED, and indexLED are lit in succession, execute Special Move A

  //if leftLED, rightLED, and indexLED + middleLED are lit in succession, execute Special Move B

}

No comments:

Post a Comment

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