Skip to content

Conversation

@manuq
Copy link
Collaborator

@manuq manuq commented Sep 30, 2025

Resolve #1265

@github-actions
Copy link

Play this branch at https://endlessm.github.io/threadbare/branches/endlessm/guard-behavior.

(This launches the game from the start, not directly at the change(s) in this pull request.)

Copy link
Member

@wjt wjt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not look at the WIP patch but the preparatory patches look good to me

## Draw the patrol path segments
if curve.point_count > 1:
for point_idx in curve.point_count - 1:
draw_line(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's good to remove this because it interacts badly with the debug option to have the guard move in the editor: the path is drawn relative to the guard's current position not original position.

@manuq manuq force-pushed the guard-behavior branch 4 times, most recently from 35aa55a to b99c243 Compare October 7, 2025 02:54
@manuq manuq mentioned this pull request Oct 7, 2025
@manuq
Copy link
Collaborator Author

manuq commented Oct 7, 2025

While doing this I found that the calculations of the path walk behavior were wrong for the edge cases, and for scaled or rotated paths. So I have split that into a separate pull request.

@manuq manuq force-pushed the guard-behavior branch 3 times, most recently from 2c0edbd to ac89b4b Compare October 9, 2025 11:49
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.

Guard: Integrate with character behavior

2 participants