Flappy bird is a fun side-scrolling game where players control a bird and attempt to avoid objects to gain points. In this project, you will modify a game of Flappy Bird to incorporate the Getting Started Kit.
This project assumes you are familar with Processing and you have completed the following guides:
By the end of this tutorial, you should have a functioning Flappy Bird game implemented in Unity.
The setup is simple. Connect your Getting Started Kit to your computer.
This project builds off of the Flappy Bird Tutorial by Unity Technologies. After you've worked through the tutorial and have Flappy Bird working, continue with the instructions below.
Import the Phidget libaries. If you forget how, go back to the Unity and Phidgets Tutorial.
You can recreate the jumping movement with one of the buttons from the Getting Started Kit.
To use the Getting Started Kit button you must first navigate to the Start method. This is where you can begin writing your Phidget code.
Remember to close your Phidget objects when the application is finished.
After getting your jumping working with the Getting Started Kit, try the following:
- Make the game multiplayer. Add another Getting Started Kit for a second controller.
- When using two VINT Hubs in the same program, make sure to set the Device Serial Number of your Phidget objects.
- Use a different Phidget to control the bird. For example, the Thumbstick Phidget.
There are many more applications of the Get Started Kit and Phidgets. Have you created something from your Get Started Kit? We would love to hear about it at firstname.lastname@example.org