15 March 2026

Scaffolding: Progress Review Team 12

 Our controller for the game ZeroRanger is modeled after the Type-A ship found in game. This design is used for one of the bosses in game and is a ship of the same type used by the player captured and controlled by the enemy. Thematically, choosing this design for our ship shows the player taking back control of the captured ship. For our input controls, we have sliding components which will expose photoresistors to the light when pushed. These sliding components contribute to the weapon aspects of the ship. For example, the back and front sliding components will look like the ship blasters are extending while shooting in game. The middle sliding component works as a 'player hatch' where a pilot would normally sit inside the ship, firing the default weapon in the game. The potentiometer which controls horizontal movement in the back works with its placement being similar to where a fanjet would be on an actual ship. A stand is placed under our controller for any holding difficulties, with it being able to tilt the ship back and forth for use of the y-axis accelerometer which control's vertical movement. The switch above the potentiometer activates the player's transformation into and out of melee mode.


Sketch:

Schematic:
Pseudo Code:

begin serial port and circuit playground

assign signal analog readings to variables

run input code only if the switch on circuit playground reads high enough

//move up or down based on the Accelerometer Y reading
if accelerometer reading is high press keycode up arrow
if accelerometer reading is in the middle release keycode up arrow and down arrow
if accelerometer reading is low press keycode down arrow

//move left or right based on the potentiometer reading
if potentiometer reading is low press keycode left arrow
if potentiometer reading is in the middle release keycode left arrow and right arrow
if potentiometer reading is high press keycode right arrow


//press fire1 button when the photo resistor is revealed to light
if light sensor 1 reads high enough press keycode Z
if light sensor 1 reads lower release keycode Z

//press fire2 button when the photo resistor is revealed to light
if light sensor 2 reads high enough press keycode X
if light sensor 2 reads lower release keycode X

//press fire3 button when the photo resistor is revealed to light
if light sensor 3 reads high enough press keycode C
if light sensor 3 reads lower release keycode C

//press fire1+2+3(transform to melee mode) macro when the switch is flipped
if switch reads high write keycode left ctrl
if switch goes back to low write keycode left ctrl






No comments:

Post a Comment

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