Posted June 28, 2016
I missed last week's progress report. Sorry. Helping a friend move has taken most of the weekend. :P
I am currently working on something perhaps not many has noticed in the past while playing X-Wing: target lead indicator at cannon level.
What does that mean?
Well, some games have a "target lead" widget on the HUD. It is a circle or similar shape that indicates where should you aim at so that your shots would hit your target.
You can see these target leads in games like Freespace, Wing Commander, and many combat flight sims (planes and helicopter ones).
If you cannot remember X-Wing (or any other game in the series) having a target lead, you are right. There was none. Or there was?
Yes, there was one, only that it was invisible. Wait a moment, does that make even sense?
Yes. The target lead in X-Wing and the other games is invisible, however it is there. You can tell because when you aim at where the target lead should be, your targeting reticule turns green, and you can hear a sound.
A green reticle is (almost) guarantee that a shot will hit your target, unless the target changes its bearing suddenly after your shoot.
Also, the X-Wing reticule is composed of the main squarish reticule, and smaller cannon icons around it. These icons also turn green when their represented cannon would hit the target if it shot at that precise moment.
In fact, you could say that in X-Wing there are as many target leads as active cannons, because it is possible that one cannon would hit with its shot, while another cannon wouldn't. This is easy to see with a B-Wing.
So you can have some cannon reticles turning green, while some others remain blue.
The main, square, reticle doesn't actually have a target lead associated to it. It just turns green if any of the cannon reticles is green.
To complicate things further, the target lead (or target leads) aren't just points, like in most games. X-Wing is quite advanced in the sense that the target lead has the shape of target ship's collider as seen from the player's point of view. That means, it is just not a round or square area (or volume) in front of the ship, but an actual precise representation of the shape of the ship.
So for example, it is possible that you were aiming at the precise center of where the target ship is going to be, but your cannon reticle will not turn green, because in that position, there is empty space in the ship's profile. Imagine the space between the engines of a Y-Wing.
All of this may sound too complex or overblown, but it is there, in the classic X-Wing. It amazes me the attention to detail put on a game meant to run on a 386!
MjrParts and I spent some time last week thinking on the cleverest way possible to make all this work, and I think we found it, while keeping it quite low in CPU cost. I will try to upload some screenshot or video later this week to show how it looks.
I am currently working on something perhaps not many has noticed in the past while playing X-Wing: target lead indicator at cannon level.
What does that mean?
Well, some games have a "target lead" widget on the HUD. It is a circle or similar shape that indicates where should you aim at so that your shots would hit your target.
You can see these target leads in games like Freespace, Wing Commander, and many combat flight sims (planes and helicopter ones).
If you cannot remember X-Wing (or any other game in the series) having a target lead, you are right. There was none. Or there was?
Yes, there was one, only that it was invisible. Wait a moment, does that make even sense?
Yes. The target lead in X-Wing and the other games is invisible, however it is there. You can tell because when you aim at where the target lead should be, your targeting reticule turns green, and you can hear a sound.
A green reticle is (almost) guarantee that a shot will hit your target, unless the target changes its bearing suddenly after your shoot.
Also, the X-Wing reticule is composed of the main squarish reticule, and smaller cannon icons around it. These icons also turn green when their represented cannon would hit the target if it shot at that precise moment.
In fact, you could say that in X-Wing there are as many target leads as active cannons, because it is possible that one cannon would hit with its shot, while another cannon wouldn't. This is easy to see with a B-Wing.
So you can have some cannon reticles turning green, while some others remain blue.
The main, square, reticle doesn't actually have a target lead associated to it. It just turns green if any of the cannon reticles is green.
To complicate things further, the target lead (or target leads) aren't just points, like in most games. X-Wing is quite advanced in the sense that the target lead has the shape of target ship's collider as seen from the player's point of view. That means, it is just not a round or square area (or volume) in front of the ship, but an actual precise representation of the shape of the ship.
So for example, it is possible that you were aiming at the precise center of where the target ship is going to be, but your cannon reticle will not turn green, because in that position, there is empty space in the ship's profile. Imagine the space between the engines of a Y-Wing.
All of this may sound too complex or overblown, but it is there, in the classic X-Wing. It amazes me the attention to detail put on a game meant to run on a 386!
MjrParts and I spent some time last week thinking on the cleverest way possible to make all this work, and I think we found it, while keeping it quite low in CPU cost. I will try to upload some screenshot or video later this week to show how it looks.
Post edited June 28, 2016 by Azrapse