Moving & Shooting

 

This example shows how to and rotate an object using the keyboard or a joystick (controller). The ship moves and shoots in the direction that it’s facing. The shots are also timed to limit the firing rate.

Try this example with any standard USB controller, you won’t want to go back to using the keyboard.

 

Shooting.zip  200KB