Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
Quick Information
Prologot is a GDExtension that integrates SWI-Prolog into Godot 4, enabling logic programming in your games. Use Prolog for AI decision-making, dialogue systems, rule engines, pathfinding, and more.
Prologot
Prologot is a GDExtension that integrates SWI-Prolog into Godot 4, enabling logic programming in your games. Use Prolog for AI decision-making, dialogue systems, rule engines, pathfinding, and more.
- SWI-Prolog integration via GDExtension.
- Interactive Prolog console in the Godot editor.
- Query execution with variable bindings.
- Dynamic fact assertion and retraction.
- Consult Prolog files or code strings.
- Knowledge base management.
- Type conversion between Prolog terms and Godot Variants.
You can see Use Cases for basic examples and quick start guide.
Documentation
- Getting Started: Follow the Installation Guide to set everything up. The quick way to compile:
# Install dependencies (Linux example)
sudo apt-get install swi-prolog swi-prolog-nox pkg-config
pip install scons
# Clone and build
git clone https://github.com/yourusername/Prologot.git
cd Prologot
make GODOT_CPP=4.5 all
- Try the Demo: Once built, run the Interactive Demo to see Prologot in action:
make run-demo
Experiment in the Editor: After playing with the demos, fire up the Editor Console in Godot. It's like having a Prolog REPL right in your editor - perfect for tinkering and testing ideas. Once you've convinced yourself that Prolog is actually useful (we know, it's a hard sell), grab the hello_world_prologot.gd template and start building. Don't forget to check the API Reference when you need the details.
For Prolog Veterans: If you're already fluent in Prolog and wondering why we renamed everything, check out the Mapping between Prologot and traditional Prolog names. We promise it's not just to confuse you.
Project Structure
Prologot/
βββ src/ # C++ source files
β βββ Prologot.hpp # Main class header
β βββ Prologot.cpp # Main class implementation
β βββ register_types.h # GDExtension registration header
β βββ register_types.cpp # GDExtension registration
βββ tests/ # Unit tests
βββ addons/prologot/ # Godot plugin
β βββ plugin.cfg # Plugin configuration
β βββ plugin.gd # Plugin entry point
β βββ prologot_dock.gd # Editor dock UI
β βββ prologot_singleton.gd # Global autoload singleton
βββ demos/ # Demo projects
β βββ showcases/ # Interactive demo project
β βββ examples/ # Prolog example files (.pl)
β βββ prologot-demos.gd # Main demo script (UI and logic)
β βββ prologot-demos.tscn # Scene file (UI layout)
βββ doc/ # Documentation
β βββ hello_world_prologot.gd # Hello World example
βββ bin/ # Compiled libraries (after build)
βββ prologot.gdextension # Extension configuration (after build)
βββ godot-cpp-*/ # Godot C++ bindings (git cloned automatically by SConstruct)
βββ SConstruct # SCons build system (handles everything: setup, compile, generate .gdextension)
βββ Makefile # Convenience commands to SCons
License
This project is licensed under the MIT License - see the LICENSE file for details.
This project used AI to generate code.
Prologot is a GDExtension that integrates SWI-Prolog into Godot 4, enabling logic programming in your games. Use Prolog for AI decision-making, dialogue systems, rule engines, pathfinding, and more.
Reviews
Quick Information
Prologot is a GDExtension that integrates SWI-Prolog into Godot 4, enabling logic programming in your games. Use Prolog for AI decision-making, dialogue systems, rule engines, pathfinding, and more.