Flexible Isometric Free Engine (FIFE) is a multi-platform isometric game engine written in C++. It comes with Python bindings allowing users to create games using Python as well as C++. The engine is extendable and enables you to add any feature you can imagine to your project.
Website | Changelog | Releases | Docs | Developer Manual | C++ API | Python API
| Continuous Integration | Windows | Linux | Mac | Python Wheels |
|---|---|---|---|---|
| Build Status | 👷🏼 |
- Features
- Releases
- License
- How to Build
- Tests
- Python Demos
- Python Tutorials
- C++ Tutorials
- Troubleshooting
- Feedback
A detailed feature list for FIFE is documented in the user manual.
You find the latest releases on Github Releases.
We also provide releases for the latest successful build on Github Actions CI.
Fifengine is also already available from the following package repositories:
The source code (*.cpp, *.h & *.py) is licensed under LGPL v2.1 or newer.
Content was taken from a lot a lot of different 3rd party sources. Therefore each client directory comes with a separate LICENSE file that states the origin of the content, the author and the actual license it was published under.
FIFE uses CMake and Ninja for building. The build process requires several dependencies that can be installed as system packages or via vcpkg.
- CMake 3.15 or newer
- C++20 compatible compiler (GCC, Clang, MSVC 17 or 18)
- vcpkg package manager (optional)
-
Install vcpkg if not already installed:
git clone https://github.com/Microsoft/vcpkg.git cd vcpkg ./bootstrap-vcpkg.sh ./vcpkg integrate install -
Install required system packages:
sudo apt-get update sudo apt-get install libglu1-mesa-dev
-
Install FIFE dependencies via vcpkg:
./vcpkg install --triplet x64-linux
Or run the provided script:
./vcpkg.sh
-
Configure the build using CMake presets:
cmake --preset clang20-x64-linux-rel -DENABLE_FIFEGUI=OFF -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_LIBRARY=ON
This creates the build directory
out/build/clang20-x64-linux-reland configures for:- Release build with Clang 20
- Disabled fifechan GUI library
- Disabled Python bindings
- Enabled shared library build
-
Build the library:
cmake --build out/build/clang20-x64-linux-rel
-
(Optional) Install the library:
cmake --install out/build/clang20-x64-linux-rel
The built library libfife.so will be located in out/build/clang20-x64-linux-rel/.
- To build with fifechan GUI support:
-DENABLE_FIFEGUI=ON - To build Python bindings:
-DBUILD_PYTHON_BINDINGS=ON - For debug build, use preset
clang20-x64-linux-dbg - For different compilers, use appropriate presets (see
CMakePresets.json)
To list all available build targets:
cmake --build <build-dir> --target helpExisting Targets:
| Target | Description | CMake Options Required |
|---|
- fife | C++ library | -DBUILD_LIBRARY=ON
- fife.headers | Custom target for headers |
- fife.swig-wrappers | Custom target for SWIG wrappers |
- fife_swig | Python extension for FIFE | -DBUILD_PYTHON_BINDINGS=ON
- fifechan_swig | Python extension for fifechan | -DBUILD_PYTHON_BINDINGS=ON -DENABLE_FIFEGUI=ON
- test_* | Various C++ tests | -DBUILD_LIBRARY=ON -DBUILD_TESTS=ON
cmake -B build -S . -DBUILD_PYTHON_BINDINGS=ON
cmake --build build --target fife_swig fifechan_swig
cmake -B build -S . -DBUILD_LIBRARY=ON -DBUILD_TESTS=ON
cmake --build build
The folllowing tests are available:
- fife_test (
tests/fife_test/): Custom runner run.py - swig_tests (
tests/swig_tests/): Uses unittest - extension_tests (
tests/extension_tests/): Uses unittest - core_tests (
tests/core_tests/): Uses Catch2 (C++)
The test tool can be found within the <FIFE>/tests/fife_test directory.
You can launch it by running run.py. Open the console with F10.
To run a test enter run and the test name like PathfinderTest.
Prerequisites:
- Build fife_swig (and optionally fifechan_swig)
- Install or set PYTHONPATH to include the built modules
C++ tests use Catch2 and require the fife library target to exist.
Prerequisites:
- Configure with
-DBUILD_LIBRARY=ON -DBUILD_TESTS=ON - Build the targets
Running tests:
cd build
ctest --test-dir . -L core -V
./test_dat1 ./test_dat2
The Python demos are located in the demos directory.
Each demo has its own folder and can be launched by running run.py in the respective folder.
For details about each demo, please refer to the demo's README file.
Our Python tutorials demonstrate how to use the engine when working with Python.
There is also a set of C++ tutorials that demonstrate how to use the engine when working with C++.
Certain driver and graphics card combinations are known to cause issues with FIFE. Users may experience blank screens or blurred images. If you encounter this, please report it on our issue tracker.
Please include your graphics card, driver, and operating system information in your report.
Currently, the workaround is to edit your settings.xml file and set
both GLUseFramebuffer and GLUseNPOT to False (they are True by default).
Win32 users tend to suffer from problems with the OpenAL drivers. If you don't
hear sound while running a FIFE client, run oalinst.exe that ships with the
Win32 FIFE Development Kit. This is the latest OpenAL driver for Win32.
We appreciate every kind of feedback concerning the release, the project in general and the bundled techdemo. Feedback is a great way to help us to improve FIFE. If you would like to get in contact with us or provide feedback, you can post in the discussions section.
