The acceleration due to gravity affects the time of flight and the maximum height reached by a projectile.
The horizontal component of the force of gravity causes the projectile to move horizontally while the vertical component causes the projectile to accelerate downwards.