godot-gdnative-template
Actually usable GDNative template for Godot and C++
(Based on the Godot wiki guide)
Features
- Auto-generates binding files for GDNative classes (.gdns)
- Auto-generates the godot entry point and library (entry.cpp and .gdnlib)
- Configurable through a config.toml file.
Usage
- Replace the
game
directory with your godot project and add abin
directory to it (names are configurable). - Write your class names in the config file
game.bindings
section. - Build the
godot-cpp
files:cd godot-cpp scons platform=<platform> generate_bindings=yes -j$(nproc) cd ..
- Build the project:
scons platform=<platform> -j$(nproc)
- Click the play button on Godot.
- Enjoy!