Skip to content

r3shape/r3ngin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

luna

GitHub Stars License


Relevant Links

| Discord | Reddit | Discussions | FAQ |

Building the Engine Source

NOTE: If you're using the r3make CLI tool, ensure Python is installed. For more information, check out the r3make Repository.

luna includes a pre-configured r3make file for easy setup and compilation. r3make is the recommended tool for fast, simple, efficient builds.


Option 1: Build with r3make (Recommended)

  1. Install r3make:
    Install via PyPI:

    pip install r3make
  2. Clone the Repository:

    git clone https://github.com/r3shape/luna
  3. **Navigate to the luna directory:

    cd luna
  4. Build the Engine:

    • Target: luna builds the lunacore.dll from src/luna/core
    r3make -nf -v -t luna
    • Target: Runtime builds the luna.exe from src/luna/runtime
    r3make -nf -v -t Runtime
  5. Output:
    The compiled lunacore.dll, along with luna.exe runtime will be located in the build directory.


Option 2: Manual Compilation

For those who wish to wield the source themselves:

  1. Clone the Repository:

    git clone https://github.com/r3shape/luna
    cd luna
  2. Compile the Engine:
    Manually compile using GCC:
    | Compile the core library

    gcc -c src/luna/core/*.c -Iinclude -o build/*.o
    gcc -shared build/*.o -Lexternal/__data__/thirdparty -lgdi32 -lopengl32 -lSSDK -o build/lunacore.dll

    | Compile the runtime

    gcc src/luna/runtime/*.c -Iinclude -Lexternal/__data__/thirdparty -Lbuild -llunacore -lSSDK -o build/luna.exe

Building Projects with luna

  1. Prepare Your Project:
    Set up your source files, including necessary paths.

  2. Compile with r3make or GCC:
    Example using GCC:

    gcc my_project.c -luna/include/luna -Lluna/build -L/luna/external/__data__/thirdparty -llunacore -lSSDK -o my_project.exe

luna Contributors


License

luna is licensed under the MIT License.

About

Pure C Game Engine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published