C7-Game / Prototype

An early-stage, open-source 4X strategy game
https://c7-game.github.io/
MIT License
34 stars 9 forks source link

Unit selector should prioritize nearby units #298

Open QuintillusCFC opened 2 years ago

QuintillusCFC commented 2 years ago

Currently, the unit auto-selector selects units in the order they were built.

This is okay until you send three chariots one way, and three the other, and it bounces back and forth between them because group A wasn't all built before group B.

Civ3 isn't 100% perfect in this regard but seems to have a little bit of sense. Or maybe I just tend to have good fortune in that regard.

Side note, I kind of like what Old World did in this regard, cycling through units by type (worker/military/scout/boat) and allowing you to jump to a different type. But for now, geographic proximity would be a nice improvement. And it should take into account that if the human manually selects a unit, the next auto-selected one should be near that one.

(Not for Carthage, just writing it down while I'm thinking of it)

WildWeazel commented 2 years ago

Some other games have separate hotkeys for next military unit and next civilian unit, which would be nice