|
|
> Do the ships simply aim at the current position of the target, or do
> they take into account the velocity of the target and try to calculate
> where the target will be when the laser has reached it? The latter would
> probably be more interesting and force the ships to fly in non-straight
> unpredictable curves to avoid being hit. :)
That's exactly what's happening. =)
The chaser is always moving towards the place that the victim would be in
the future if a laser were to be shot from the current distance. When the
chaser has sucessfully oriented himself so that that place is in front of
him, he shoots. I purposely made the calculation of this point in space with
a more simple formula than should have been used, but it's accurate most of
the time. This gives the impression of imperfect aim.
The victim, however, is able to tell when he is being targeted, and does his
best to avoid the direction that the chaser is currently facing. This
usually means that the victim is able to get away if he's fast enough, but
if there's too much time, then the chaser usually succeeds.
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
|