22 October 2023

Scaffolding: Progress Review - sword controller

 

For my controller, I decided to continue with the sword that will be used to play Deepest Sword. This controller is housed inside of a short sword and has some basic functions to play the game. I chose the concept of the sword to place the player in the shoes of the knight on his quest to slay the dragon at the end of each puzzle. On the sword, there will be one button that will be used for the restart function and also as a way to assist in the triggering of the sword swings to navigate through the puzzles. To control the left and right movements, there is a potentiometer placed on the front of the sword. Rotating it to either side will trigger the player’s movements. Inside of the sword is where a gyroscope will be housed. The gyroscope will be used in conjunction with the singular button as a way to swing the sword in a particular direction. Rotating the sword to the right while holding the button down at the same time will cause the sword to swing clockwise while rotating to the left will swing counterclockwise.



Pseudocode:



No comments:

Post a Comment

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