derkork/godot-statecharts
关于
适用于 Godot 4 的状态图扩展
数据与分析可以做什么
- Built from scratch for the Godot Engine in an idiomatic way using Godot's nodes and signals. You need very little code to get started.
- Supports both GDScript and C#.
- Your code only interacts with a single class, StateChart which has two methods for triggering transitions and setting properties for expression guards. There is no need to create subclasses or implement interfaces. This makes it easy to integrate the library into your existing code base (or remove it if you find it unsuitable).
- Declarative transitions with guards allow you to express complex logic in a simple way without writing any code.
实测星标增长
- 24小时
- 0
- 7天
- +2
- 15天
- +4
- 1个月
- +11
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Godot State Charts
Quick Links
Install from the Godot Asset Libary | Read the manual | FAQ | Godot Engine Discord
If you prefer to learn in video form, there is also a video tutorial available on YouTube to get you started.
What is Godot State Charts?
Godot State Charts is an extension for Godot Engine 4 or later that allows you to use state charts in your game. State Charts are similar to finite state machines, but they are more powerful and avoid the state explosion problem of traditional FSMs.
Features
- Built from scratch for the Godot Engine in an idiomatic way using Godot's nodes and signals. You need very little code to get started.
- Supports both GDScript and C#.
- Your code only interacts with a single class,
StateChartwhich has two methods for triggering transitions and setting properties for expression guards. There is no need to create subclasses or implement interfaces. This makes it easy to integrate the library into your existing code base (or remove it if you find it unsuitable). - Declarative transitions with guards allow you to express complex logic in a simple way without writing any code.
- Transitions can be time-delayed to easily build things like cooldowns.
- Comprehensive in-editor error checking and warnings will help you avoid common mistakes.
- Built-in debug view allows you to inspect your state charts in the game while they are running.
- Inactive states will not update every frame for improved performance.
- All states adhere to the pause mode, so state charts will pause when the game is paused.
- Comprehensive documentation with a proper manual and annotated examples.
Attribution
The demo projects use the very nice Pixel Adventure assets by Pixel Frog. Thanks for making them available in the public domain!
The demo projects also use some icons made by J. W. Bjerk (eleazzaar), licensed under CC by DEED 3.0. Thanks for making them available!
探索相关项目
加载中…
