Moving is one of the most common tasks in any video game. The second most common task is shooting a projectile to attack enemies. Even though a player can move around in the game, it makes the game boring over time. Therefore making more interactions such as shooting projectiles, unlocking items, or other options can make a game more interesting.
Firing a projectile involves creating another object, aiming it, and moving it in the direction it was aimed. Later, shooting ...