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.
Before we start, make sure you have the following prerequisites installed:
Open a terminal window by pressing Ctrl + Alt + T
on your keyboard.
Clone the Librengine repository by running the following command:
git clone https://github.com/liameno/librengine.git
Navigate to the cloned directory:
cd librengine
Install the required dependencies:
sudo pacman -S cmake liblua glfw-x11 xorg-server-xwayland
Create a build directory:
mkdir build && cd build
Generate build files using CMake:
cmake ..
Build the engine:
make
Install the engine:
sudo make install
To test whether the installation was successful, you can run one of the example games provided with the engine.
Navigate to the examples
directory:
cd ../examples
Run the example001
game:
librengine example001.lua
This should launch the example game. If you see the game window, you have successfully installed Librengine on EndeavourOS Latest.
In this tutorial, we have seen how to install Librengine on EndeavourOS Latest. Now you can start developing 2D games using Lua with Librengine.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!