Also, there is a virtual key used to make the spaceship shoot; Motion: motion input uses the built-in device’s accelerometer.
In this version of the game, the user can move the spaceship by moving the device in its X and Y axes.
To shoot, the user needs to press a virtual key presented in the screen;
Touch: using touch input, we allow the user to control the spaceship through gestures that are made with the device.
In this version of the game, the user can move the spaceship by using the Motion approach but shooting is made by a swap gesture on device.