into the direction the police is facing. There are also randomly generated enemies appearing on the screen which move towards the player.
The goal is to shoot all enemies before they reach the player. If an enemy reaches the player, the game is over. The player can move by tilting the phone left or right.
The score is based on how many enemies the player manages to shoot before the game is over. The game also includes sound effects for shooting and when an enemy reaches the player.
Below is the code for the game: