Pyxus / fray

Fray – Godot Combat Framework

Home Page:https://fray.pyxus.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fray

Fray Logo

Fray status Godot version License

📖 About

Fray is a modular Godot 4 addon designed to aid in the development of action-oriented games. It offers solutions for combatant state management, complex input detection, input buffering, and hitbox organization. If your project requires any of these functionalities you may benefit from using Fray.

⚠️ IMPORTANT

Fray is currently in an alpha state.

What does this mean?

  • It has not been tested rigorously enough for me to be comfortable recommending it for use in a serious project.

  • The documentation is incomplete and there is a lack of good examples.

  • Lastly, it is still susceptible to refactors, meaning the API is subject to change.

That being said, a significant portion of Fray is functional, with any remaining bugs likely being simple oversights rather than major design flaws. If these issues do not concern you, and/or you are interested in testing the framework, please feel free to explore!

✨ Core Features

Resource-Based Hierarchical State Machine

  • Build state machines declaratively in code using the included builder class.

  • Control state transitions using callable transition prerequisites and advance conditions.

  • Extend states and transitions to further control state flow and/or encapsulate game behavior within different states.

Composite Input Detection

Hitbox management

  • Define hitboxes using template class with extendable attributes resource.

  • Organize hitboxes using hit states and hit state managers.

  • Key active hitboxes in animation player using a single property for easier timeline management.

📚 Getting Started

Fray comes with comprehensive documentation integrated with Godot 4's documentation comments. This means you can access explanations for classes and functions directly within the Godot editor.

For additional guides and resources, check out the official Fray wiki.

📦 Installation

GitHub Release (Recommended, Stable)

Coming soon...

Asset Library (Recommended, Stable)

Coming soon...

GitHub Branch (Latest, Unstable, Godot 4.2+)

  1. Downloaded the latest main branch
  2. Extract the zip file and move its contents to addons/fray.
  3. Enable the addon inside Project/Project Settings/Plugins

If you would like to know more about installing plugins see the Official Godot Docs.

📃 Credits

About

Fray – Godot Combat Framework

https://fray.pyxus.dev

License:MIT License


Languages

Language:GDScript 100.0%