r1sc / Open76

Interstate '76 engine reimplementation
GNU General Public License v3.0
52 stars 3 forks source link

Radar #23

Closed JJJohan closed 5 years ago

JJJohan commented 5 years ago

Adds one of the more complex UI systems - the radar. With the radar mostly there, the only two interior UI components left are the speedo/tacho which are quite simple, followed by the alternative interior view.

I've gone through the effort of getting the radar pretty much fully functional. There will be some slight differences to the original game which will need to be tweaked (mentioned below), but the logic should be all there.

radar

The radar contacts will 'fade out' in colour until they are "sweeped" again. The original game does this too, however the original appears to use a range of palette colours that don't appear to be consistent every time so it'll need to be investigated in the future. Hopefully this is the only non-matching issue.

Note 1: This branch is built on top of the Internal-UI branch as it uses a fair chunk of code from that. Once that branch is merged, this pull request diff should shrink a fair bit.

Note 2: Audio will not sound very nice until the other open audio pull request has been merged (and subsequently some merge conflicts are resolved with this branch)