My controller is fairly straight-forward. It is designed to
play Pac-man which requires players to switch their direction to a given
cardinal direction on the fly. I thought a great way to make a fun controller
would be to base the controller off of Pac-man’s appearance and place a potentiometer
with a black knob where Pac-man’s eye would be. The potentiometer would be read
and at certain intervals would influence the keyboard output from the Circuit
Playground. While it may not be the most efficient way to play, I believe that
it will be a refreshing experience to play this way for many of us who have grown
accustomed to this classic game.
First, we must state what we want to read here.
We will also create variables for the range limits in order to improve readability.
Here we will have the loop
If we are within the range for up, we will send W.
If we are within the range for down, we will send S.
If we are within the range for left, we will send A.
If we are within the range for right, we will send D.
Questions:
1. Do you think that there are any simple
modifications to this idea that it might benefit from?
2. Does this seem like something that you would
enjoy playing with?
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.