Skip to content

Guards: Use a walk behavior#1880

Draft
manuq wants to merge 13 commits intomainfrom
guard-behavior
Draft

Guards: Use a walk behavior#1880
manuq wants to merge 13 commits intomainfrom
guard-behavior

Conversation

@manuq
Copy link
Collaborator

@manuq manuq commented Feb 4, 2026

No description provided.

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

Play this branch at https://play.threadbare.game/branches/endlessm/guard-behavior.

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

manuq added 4 commits February 6, 2026 09:43
The destination point was being set on every process loop.
This walk behavior is based on the original guard's patrolling implementation.
To see the guard walking in the editor canvas when the "move while
in editor" debug option is enabled.
Remove the now uneeded methods or properties.
@manuq
Copy link
Collaborator Author

manuq commented Feb 6, 2026

Day 3: I finally extracted a walk behavior for the patrolling, although some things were left broken in the process and I need to bring them back again. My test scene works fine but not the lore stealth game. The guard is walking while in the editor always, not just when the debug option "move while in editor" is enabled.

The cost of doing these kinds of refactors is too high!

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.

1 participant