Lit Engine is an open-source high-level game engine powered by raylib. Made with the speed and portability of C++, Lit Engine allows you to build 3D experiences with minimal effort, and our intuitive interface will quickly launch you into the development world.
Give a ⭐ if you find the project useful! Your support helps the project to keep innovating and delivering exciting features.
Do you want to give Lit Engine a quick run on your machine? You can clone the repository by running the following command on your terminal:
git clone --recurse-submodules -j8 https://github.com/luis605/Lit-Engine
If the submodules weren't downloaded, you can intialize them by running:
git submodule update --init --recursive
Before building the engine, ensure that you have all the dependencies installed. They can be installed by opening the install directory and running install.sh:
cd install
./install.sh
Then, you can build the remaining dependencies by running:
./build_dependencies.sh
To compile Lit Engine on Windows, you need some dependencies, such as CMake, Make, MSYS2.
-
Make sure you have git installed on your machine. Otherwise, go to https://gitforwindows.org and install the git terminal.
-
Open the Git CMD and clone Lit Engine:
git clone --recurse-submodules -j8 https://github.com/luis605/Lit-Engine
-
To install the MSYS2 installer, visit https://www.msys2.org/ and follow their installation guide.
-
Lanch MSYS2 MINGW64 and run
pacman -S make cmake nasm diffutils mingw-w64-x86_64-toolchain mingw-w64-x86_64-python mingw-w64-x86_64-ffmpeg mingw-w64-x86_64-bullet msys/msys2-runtime-devel
. If any installation option pops out, use the default option. -
Open the Lit-Engine directory inside the MSYS2 MINGW console and run:
cd include/ffmpeg
./configure --disable-iconv --disable-zlib --disable-network --disable-programs --disable-encoders --disable-demuxers --disable-filters --disable-protocols --disable-openssl --disable-libxml2 --disable-indevs --disable-outdevs # It may take a while
cd ../..
- Build all the dependencies by opening the project main directory and running:
make build_dependencies
- And finally generate the Makefile and executable by running:
cd build
cmake -G "Unix Makefiles" .. --fresh
After successfully cloning the repository and setting up the project, you can build and run Lit Engine using our Makefile:
make build
make run
Alternatively, you can build and run the engine in a single step using the brun target:
make brun
Please note that if you used make brun
and the build step wasn't executed, you can force a complete rebuild with the following command:
make -B brun
If you encounter any strange behavior and need to debug the engine, you can start the debugger with the following command:
make debug
If you need to rebuild the engine, you can run the build and debug target in a single command
make bdb
Documentation is available at https://litengine.org/manual.
Note: Our documentation isn't yet finished!
Check LICENSE.md for more information.