Skip to content

Simple state machine automaton using GDNative

License

Notifications You must be signed in to change notification settings

brunocu/stateMachine-godot

Repository files navigation

State Machine in Godot

Version Dependency Dependency

Simple state machine example using Godot engine with GDNative scripts using godot-cpp C++ bindings.

Exercise on class overloading and pointer to member function.

State Machine

Progress

The state machine will consist of multiple automaton which follow the diagram below.

States

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You must have a compiled version of the godot engine version 3.2-stable.

Setting up

It is recommended you download the project using git as seen below. Alternatively if you download the source code directly from github you also need to download godot-cpp and godot_headers.

git clone --recursive https://github.com/brunocu/stateMachine-godot.git

Generating bindings

godot-cpp GitHub

See the godot-cpp README for generating the C++ bindings.

Building

Windows

For building in windows the VSBuild folder is included. Make sure you have all C++ tools installed and open VSBuild/VSBuild.sln.

Build the project and VSBuild.dll will be generated inside finiteGodot/bin/.

Linux

Make sure you have Python 3.X and Scons.

mkdir finiteGodot/bin/
scons p=linux

Add target=release for a release build. You also need to build release bindings.

Authors

Written by Bruno Campos.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

Big thanks to the godot community and the godot-cpp maintainers.