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:

Installation

  1. Open a terminal window by pressing Ctrl + Alt + T on your keyboard.

  2. Clone the Librengine repository by running the following command:

    git clone https://github.com/liameno/librengine.git
    
  3. Navigate to the cloned directory:

    cd librengine
    
  4. Install the required dependencies:

    sudo pacman -S cmake liblua glfw-x11 xorg-server-xwayland
    
  5. Create a build directory:

    mkdir build && cd build
    
  6. Generate build files using CMake:

    cmake ..
    
  7. Build the engine:

    make
    
  8. Install 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.

  1. Navigate to the examples directory:

    cd ../examples
    
  2. 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.

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.

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!