23 October 2024

Scaffolding: Progress Review - angry birds


 Team 4:
Scaffolding: Progress Review - angry birds    

    For our unconventional game controller, we decided to make a replica slingshot, for the game angry birds. For a more immersive experience, we wanted to pull something directly from the game that would keep controls simple but still fun to play with. Conceptually, the controller will function as a replica slingshot using single-tap detection to set the mouse point directly on the bird, and double-tap detection to click and lock hold onto the bird. To control the bird movement on the y-axis we will use the built-in accelerometer, a knob placed directly on the handle in the front of the slingshot to control the intensity of the pullback, then sound to release the bird, and finally to trigger the special just shake the Arduino board.




Psuedo Code

{

in flight = false

tap 1 = mouse at the position of the bird 

(set mouse at pixel (x, y))

tap 2 = clicking on the bird

(click, in flight false)


shaking the arduino is the special but it should only be able to activate when the bird is in flight

(if flight = true AND shake: input click)


if sound is detected 

(in flight = true, and stop clicking)


get knob input

(as knob input increases the drawback of the slingshot increases)


get accelerometer input

(motion x correspounds to the angle of the slingshot so, motion -x is down, motion +x is up for mouse input


}

No comments:

Post a Comment

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