Skip to content

Unit AI - Discrete Behaviours #16

Description

@snayff

Suggested Feature

Give Units a behaviour to dictate how they act.

Requirements

  • Only 1 specific behaviour can be active at a time
  • Seek behaviour:
    • Actors in Unit move towards a fixed region/point, or to within range of the fixed point
  • Flee behaviour:
    • Actors in Unit move away from a fixed point
  • Pursue behaviour:
    • Actors in Unit predict the future location of an enemy Unit and move to intercept it
  • Unit can be given a location to move to (code only for now, gui later) (this is preamble for when the player can direct Units.)
    • the new location overrides any current target
    • after reaching the new location or certain time length has passed, revert to previous target

Additional Context

None

Resources

GDQuest addon: https://github.com/GDQuest/godot-steering-ai-framework
Steering recipe: https://kidscancode.org/godot_recipes/3.x/ai/context_map/index.html
C# steering examples: https://github.com/sturdyspoon/unity-movement-ai
Detailed explanations of steering for Java AI library: https://github.com/libgdx/gdx-ai/wiki/Steering-Behaviors

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    combatCombat functionality

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions