By Final Team 16: Jordan Norton & Briah Bellamy
Our controller is a pair of compact binoculars that players hold to play the game. A Short Hike is a game centered around exploring a mountain on the way up to its summit, encouraging players to tread off the beaten path along their journey, so this controller also fit the nature exploration narrative.
- The left prism housing has a capacitive pad, which players must squeeze once to jump, then squeeze again to fly.
- The right eye cup is a Bela Trill ring which can be rolled with the right thumb to steer the character in gameplay. It's similar to focus knobs, however players roll their thumb around to help "focus" their character directionally.
- The inventory menu can be accessed by folding the controller, similar to how hikers take a break from sightseeing to use their other supplies. Folding the controller allows operation of the Trill ring on the right lens in the inventory menu.
- The microphone is found at the back of the controller between the eye cups, and activates items through registering sounds such as players talking or making noise. This function is similar to birdwatchers calling the birds they spot in the wilderness.
Pseudo Code
Binocular controller pseudocode V1
Include necessary libraries
Initialize binoculars open variable //Bool
Initialize trill ring variable //2D vector, maybe array
Initialize trill bar variable //Int
Initialize microphone variable //Int
setup {
Initialize microphone input //For using items
Initialize infrared distance sensor input //For closing the binoculars
Initialize trill bar input //For interact, jumping, flying
Initialize trill ring input //For movement and menu navigation
Activate necessary libraries (circuit playground, etc)
Map infrared sensor variable to appropriate range
Map trill ring variable to appropriate range
Map trill bar variable to appropriate range
Map microphone variable to appropriate range
}
loop {
if ( binoculars open variable == true ) {
if ( player touches trill ring ) {
send W, A, S, D key signal(s) depending on player input //Move
}
if ( player squeezes trill bar ) {
send Z key signal //Jump, interact, fly
}
if ( player shouts into mic ) {
send X key signal //Use item
}
if ( infrared sensor detects sufficient decrease in range ) {
set binoculars open variable = false
}
}
else if ( binoculars open variable == false ) {
Send escape key signal
if ( player touches trill ring ) {
send A or D key signal depending on direction //Scroll through inventory menu
}
if ( player touches trill bar ) {
send Z key signal //Equip selected item
}
if ( infrared sensor detects sufficient increase in range ) {
set binoculars open variable = true
}
}
}
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.