BGP: UFO2 Example
Chapter 7 of Beginning Game Programming teaches developers how to handle player input using a game controller.
This example creates a UFO that the player can fly around with either the D-Pad or Left thumbstick on a controller. The player can also press the A button (or equivalent) to instantly warp to a random spot on the screen.
Please note, this game has only been found to work with controllers in the Chrome Browser. Firefox currently does not work. You can use the keyboard in Firefox. WASD to move, SPACE to warp.
Click download now to get access to the following files:
Log in with itch.io to leave a comment.