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

feat: Introduce ryot_brain crate for advanced NPC behaviors #121

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

lgrossi
Copy link
Collaborator

@lgrossi lgrossi commented May 7, 2024

Overview

This PR introduces ryot_brain, a new crate designed to enhance NPC behavior with advanced decision-making capabilities in Bevy-based games. Leveraging the big_brain crate, ryot_brain adds sophisticated AI behaviors through two primary modules: find_closest and follow_path. These modules integrate closely with ryot_pathfinder and other ryot family crates to provide context-aware pathfinding and target tracking functionalities.

Features

  • Find Closest Target: NPCs can identify and lock onto the nearest target using a combination of scorers and thinkers.
  • Follow Path: Once a path is determined, NPCs can follow it intelligently, recalculating as needed based on dynamic game conditions like target movement or terrain changes.
  • Modular Thinkers: Extensible thinkers allow for easy integration and customization of NPC behaviors, making them adaptable to a wide range of scenarios.

Goals

The goal of ryot_brain is to provide game developers with tools to create more dynamic and intelligent NPCs, enhancing player engagement and game complexity without the need for intricate boilerplate code.

Integration

ryot_brain is designed to seamlessly integrate with existing Bevy projects and is particularly tailored to work with ryot_pathfinder for enhanced movement and navigation capabilities.

@lgrossi lgrossi force-pushed the lucas/ryot_brain branch from d828c3e to c77a8e4 Compare May 7, 2024 23:24
lgrossi added 3 commits May 8, 2024 09:48
Introduces the `ryot_brain` crate, adding advanced decision-making capabilities for NPCs within Bevy-based game environments. This crate leverages the `big_brain` crate to implement modules for target detection (`find_closest`) and path following (`follow_path`). These modules integrate with `ryot_pathfinder` and other related crates to provide dynamic, context-aware behaviors for NPCs, enhancing their interactivity and realism in gameplay.

- Implement `find_closest` module for target detection and engagement.
- Develop `follow_path` module for intelligent path following and dynamic recalculations.
- Utilize `big_brain` thinkers and scorers for modular, extensible AI behaviors.
@lgrossi lgrossi force-pushed the lucas/ryot_brain branch from c77a8e4 to 518e4cd Compare May 8, 2024 15:12
@lgrossi lgrossi force-pushed the lucas/ryot_brain branch from ef5953a to 95bf3bc Compare May 8, 2024 23:04
lgrossi added 2 commits May 9, 2024 06:09
introduce ammend path
make path finding action event driven
pass Arc to navigable check
@lgrossi lgrossi force-pushed the lucas/ryot_brain branch from 0b95900 to c1a829c Compare May 16, 2024 18:33
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