GithubHelp home page GithubHelp logo

midzik / godot-statecharts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from derkork/godot-statecharts

0.0 0.0 0.0 16.72 MB

A state charts extension for Godot 4

License: MIT License

C# 12.09% GDScript 87.91%

godot-statecharts's Introduction

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.

Godot State Charts Tutorial on YouTube

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.

Example of State Charts in action

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, 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.
  • 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!

godot-statecharts's People

Contributors

derkork avatar uzkbwza avatar jtakakura avatar midzik avatar alitnk avatar folt-a avatar mechpensketch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.