AndroidQuazar / VanillaFactionsExpanded-Mechanoid

3 stars 6 forks source link

Rotate missiles traveling in the world map to make them face their target tile #15

Closed joseasoler closed 2 years ago

joseasoler commented 2 years ago

The vanilla code for drawing WorldObjects lacks support for rotating their texture. The code in this pull request calculates the rotation required to make missiles face their target. Then, it re-implements the required parts of the WorldObject drawing code while adding texture rotation support to it.