Simple state machine example using Godot engine with GDNative scripts using godot-cpp
C++ bindings.
Exercise on class overloading and pointer to member function.
The state machine will consist of multiple automaton which follow the diagram below.
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.
You must have a compiled version of the godot engine version 3.2-stable
.
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
godot-cpp | GitHub |
---|
See the godot-cpp README for generating the C++ bindings.
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/
.
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.
Written by Bruno Campos.
This project is licensed under the MIT License - see the LICENSE.md file for details
Big thanks to the godot community and the godot-cpp maintainers.