godot-statecharts
godot-statecharts copied to clipboard
Provide a graphical representation of the state chart for easier analysis
Overview
Recently, I've extensively used and tested the plugin, creating prototypes and more. However, after validating a mechanic, I realized that I had used an inappropriate name for an event, violating best practices and clean code principles. I went ahead to rename the event, which proved to be a bit tedious. While changing the code was straightforward, manually updating event names in all states was necessary.
After completing the renaming process, everything continued to work normally. Nevertheless, I identified an opportunity to enhance this aspect by abstracting and simplifying it within the plugin. My suggestion is to introduce an option for event registration, allowing users to select registered events or enter. If an event is selected, it would only update the String value. In principle, this way would have a more user-friendly interface and would maintain compatibility with existing projects.
Visual State Construction
I also asked myself whether it would be possible to create a visual aspect of the State construction stage. In my research into graphics, I came across stately.ai, a tool with an interface that I really liked. I wondered if the plugin currently has a level of abstraction that allows the implementation of an interface using Godot's GraphEdit (Note: I haven't delved into the plugin's source code yet).
Comments and suggestions
- Introduce a step to register events, allowing users to select events in addition to manually entering their names.
- Would it be possible to create an interface inspired by stately.ai to build and visualize the StateChart?
I look forward to your feedback on these suggestions and appreciate your efforts in improving and maintaining the plugin.