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

Fix attack command range #86

Merged
merged 12 commits into from
Jun 23, 2024
Merged

Fix attack command range #86

merged 12 commits into from
Jun 23, 2024

Conversation

bananu7
Copy link
Owner

@bananu7 bananu7 commented Jun 19, 2024

Fixes #60

@bananu7 bananu7 changed the title Added a test for attack command Fix attack command range Jun 19, 2024
@bananu7
Copy link
Owner Author

bananu7 commented Jun 19, 2024

The test works but real world testing doesn't, needs another look.

@bananu7 bananu7 marked this pull request as ready for review June 21, 2024 00:11
@bananu7
Copy link
Owner Author

bananu7 commented Jun 21, 2024

I think unit-to-building movement needs a similar change.

Specifically: https://github.com/bananu7/rts/blob/main/packages/server/src/game/unit/movement.ts#L24

should use perimeter distance, not center distance, and those functions should be renamed accordingly.

@bananu7 bananu7 merged commit d259f21 into main Jun 23, 2024
2 checks passed
@bananu7 bananu7 deleted the fix-attack-range branch June 23, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Attack on building doesn't respect attack distance
1 participant