I am creating a game that player place tower to defend a horde of enemies (refuse to use the Tower-Defend keyword, because it really is not).
When thinking about the bullet, there are several approach and I wonder which one is the most suitable
Generally, we know that (static) tower fire a bullet to hit a (moving) target.
A) Aim dumbly + actual bullet physics - Tower aim at the target position at time t=0 and fire the bullet.
Depending on the flight time of the bullet, and the speed of the target, the bullet could miss the moving target. By the time it reach that position, the target has moved
B) Aim with lead + actual bullet physics - Same as A, but the AI try to 'guess' the future location of the target
If like simple TD genre, the target mostly move in linear fashion, so this could works. What if the target movement is more advance (accelerating, jumping around).
C) Homing bullet ! - Bullet that somehow "home" on the target, hence not moving in straight line
This might look really silly
D) Mark of death - Once the bullet fly for some distance or reach close enough to the target. The target dies regardless of whether the bullet touch it or not
This might also look silly.
I think of course if we set the bullet speed to be very very high, all above is irrelevant. What are the best practice out there?
Appreciate your feedback !