This controllers main controls are the involve forward and back to move simulate the forward and back movement respectively. The ball is bonded to the center to the poles going through the ball. This allows me to bind inputs when shifting the ball left or right. For the game that we are playing we will need this slide input to simulate jumping. Moving left and right will be done via left and right tilting of the controller. The CPE visible to the user will have the neopixel LEDs light up based on the rotation to help provide feedback to the controllers movement.
check if current rotation is increasingif true output forward movementcheck if current rotation is decreasingif true output backwardscheck if controller is tilting to the leftif true output leftlight cpe pixels a certain colorcheck if controller is tilting to the rightif true output rightlight cpe pixels a certain colorcheck if soft pot pressure is on a thresholdif true simulate jump input
Thoughts on the input mapping for the controller? What should be improved/you're recommendations on how input should be? Placement for the rotary encoder to read rotation is still up in the air at the moment, suggestion on how you would get something like this to behavior appropriately?
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.