How to install Librengine on EndeavourOS Latest
Librengine is an open-source game engine that allows developers to create 2D games using Lua programming language. In this tutorial, we will see how to install Librengine on EndeavourOS Latest.
Prerequisites
Before we start, make sure you have the following prerequisites installed:
- EndeavourOS Latest installed
- Git installed
Installation
Open a terminal window by pressing
Ctrl + Alt + Ton your keyboard.Clone the Librengine repository by running the following command:
git clone https://github.com/liameno/librengine.gitNavigate to the cloned directory:
cd librengineInstall the required dependencies:
sudo pacman -S cmake liblua glfw-x11 xorg-server-xwaylandCreate a build directory:
mkdir build && cd buildGenerate build files using CMake:
cmake ..Build the engine:
makeInstall the engine:
sudo make install
Testing the Installation
To test whether the installation was successful, you can run one of the example games provided with the engine.
Navigate to the
examplesdirectory:cd ../examplesRun the
example001game:librengine example001.lua
This should launch the example game. If you see the game window, you have successfully installed Librengine on EndeavourOS Latest.
Conclusion
In this tutorial, we have seen how to install Librengine on EndeavourOS Latest. Now you can start developing 2D games using Lua with Librengine.