Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Space war pathing mostly #1144

Merged
merged 1 commit into from
May 28, 2024
Merged

Space war pathing mostly #1144

merged 1 commit into from
May 28, 2024

Conversation

hemoridos
Copy link
Contributor

Implemented larger sized ship movements in space war.
Much more permissive then the original, but still prevents ships from piling on top of each other with the occasional traffic jam included for nostalgia. This in my opinion is important to prevent weapon impact and ship explosions turning into one big lightshow when those are implemented. (My next plan)
Fighters work the same as in the SimpleSpaceWarMovementHandler.
All big ships(cruisers/battleships) occupy a 1x1 space but can't get closer then one cell to other big ships, fighters are ignored in this rule so they can move freely in the spaces between big ships.
The grid size was also increased to 25x48 allowing for more space to move around.

Updated space war layout scaling to work a bit better with the new grid size. It now tries to scale the layout relative to it's center point.

Tweaked single unit selection(no drag) on space war to be able to better selects overlapping units ie. a fighter right next to a battleship. Now it won't select both but only one, always prioritizing the smaller unit under the mouse pointer.

Fixed tanks not closing distance to target after last update that touched guard handling.

… size a bit.

Updated space war layout scaling to work a bit better with the new grid size.
Fixed tanks not closing distance to target after last update.
Tweaked single unit selection(no drag) on space war.
@akarnokd akarnokd merged commit 9bbbbdf into akarnokd:master May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants