| Discord | Reddit | Discussions | FAQ |
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.
-
Install r3make:
Install via PyPI:pip install r3make
-
Clone the Repository:
git clone https://github.com/r3shape/luna
-
**Navigate to the
luna
directory:cd luna
-
Build the Engine:
- Target:
luna
builds thelunacore.dll
fromsrc/luna/core
r3make -nf -v -t luna
- Target:
Runtime
builds theluna.exe
fromsrc/luna/runtime
r3make -nf -v -t Runtime
- Target:
-
Output:
The compiledlunacore.dll
, along withluna.exe
runtime will be located in thebuild
directory.
For those who wish to wield the source themselves:
-
Clone the Repository:
git clone https://github.com/r3shape/luna cd luna
-
Compile the Engine:
Manually compile using GCC:
| Compile the core librarygcc -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
-
Prepare Your Project:
Set up your source files, including necessary paths. -
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 is licensed under the MIT License.