APOCALYX is a...

free Game Engine based on OpenGL (MAIL) (SITE) (FORUM) (BLOG)

Wednesday, September 10, 2008

MekaWars' decoys

Here they are! Now fighters and bombers of MekaWars can protect themselves against incoming missiles thanks to decoys. In the screenshot you can see decoys (smaller green dots) thrown by fighers and, some of them, followed by deceived missiles.

The vehicles detect the incoming missiles thanks to a particular device (queried by the threat() function) reporting the distance of the nearest missile that follows the vehicle itself, but no incoming direction is reported, so the pilot must estimate the best direction to throw the decoy along. Once the missile is near enough to the decoy, it decides to follow the decoy instead of the real target. Since the decoy has a short life, the pilot has better to move away that area, just to avoid unexploded missiles that could detect the vehicle again.

No comments: