{"id":28756744,"url":"https://github.com/r3shape/luna","last_synced_at":"2025-06-17T03:08:45.533Z","repository":{"id":298211149,"uuid":"998878269","full_name":"r3shape/luna","owner":"r3shape","description":"Pure C Game Engine.","archived":false,"fork":false,"pushed_at":"2025-06-10T00:07:22.000Z","size":148,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T01:23:57.176Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/r3shape.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-09T11:54:21.000Z","updated_at":"2025-06-10T00:07:26.000Z","dependencies_parsed_at":"2025-06-10T01:34:05.430Z","dependency_job_id":null,"html_url":"https://github.com/r3shape/luna","commit_stats":null,"previous_names":["r3shape/luna"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/r3shape/luna","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3shape%2Fluna","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3shape%2Fluna/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3shape%2Fluna/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3shape%2Fluna/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r3shape","download_url":"https://codeload.github.com/r3shape/luna/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r3shape%2Fluna/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260281525,"owners_count":22985630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-17T03:08:44.939Z","updated_at":"2025-06-17T03:08:45.521Z","avatar_url":"https://github.com/r3shape.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![luna](external/__data__/assets/textures/logo.png)\n\n![GitHub Stars](https://img.shields.io/github/stars/r3shape/luna?style=for-the-badge\u0026label=stars\u0026labelColor=black\u0026color=white)\n![License](https://img.shields.io/badge/mit-badge?style=for-the-badge\u0026logo=mit\u0026logoColor=white\u0026label=License\u0026labelColor=black\u0026color=white)\n\n---\n\n### Relevant Links\n| [Discord](https://discord.gg/kreGBCVsQQ) | [Reddit](https://www.reddit.com/r/r3shape/) | [Discussions](https://github.com/r3shape/luna/discussions) | [FAQ](https://github.com/r3shape/luna/wiki/luna-FAQ) |\n\n\n## Building the Engine Source\n\n\u003e **NOTE**: If you're using the `r3make` CLI tool, ensure **Python** is installed. For more information, check out the [r3make Repository](https://github.com/r3shape/r3make).\n\nluna includes a **pre-configured `r3make` file** for easy setup and compilation. **[r3make](https://github.com/r3shape/r3make)** is the recommended tool for fast, simple, efficient builds.\n\n---\n\n### Option 1: Build with **r3make** (Recommended)\n\n1. **Install r3make**:  \n   Install via **PyPI**:  \n   ```bash\n   pip install r3make\n   ```\n\n2. **Clone the Repository**:  \n   ```bash\n   git clone https://github.com/r3shape/luna\n   ```\n\n3. **Navigate to the `luna` directory:\n   ```bash\n   cd luna\n   ```\n\n4. **Build the Engine**:  \n   - Target: `luna` builds the `lunacore.dll` from `src/luna/core`\n   ```bash\n   r3make -nf -v -t luna\n   ```\n   - Target: `Runtime` builds the `luna.exe` from `src/luna/runtime`\n   ```bash\n   r3make -nf -v -t Runtime\n   ```\n\n5. **Output**:  \n   The compiled `lunacore.dll`, along with `luna.exe` runtime will be located in the `build` directory.\n---\n\n### Option 2: Manual Compilation\n\nFor those who wish to **wield the source** themselves:\n\n1. **Clone the Repository**:  \n   ```bash\n   git clone https://github.com/r3shape/luna\n   cd luna\n   ```\n\n2. **Compile the Engine**:  \n   Manually compile using **GCC**:  \n   | Compile the core library\n   ```bash\n   gcc -c src/luna/core/*.c -Iinclude -o build/*.o\n   gcc -shared build/*.o -Lexternal/__data__/thirdparty -lgdi32 -lopengl32 -lSSDK -o build/lunacore.dll\n   ```\n   | Compile the runtime\n   ```bash\n   gcc src/luna/runtime/*.c -Iinclude -Lexternal/__data__/thirdparty -Lbuild -llunacore -lSSDK -o build/luna.exe\n   ```\n\n\u003cbr\u003e\n\n## Building Projects with **luna**\n\n1. **Prepare Your Project**:  \n   Set up your source files, including necessary paths.\n\n2. **Compile with r3make or GCC**:  \n   Example using **GCC**:  \n   ```bash\n   gcc my_project.c -luna/include/luna -Lluna/build -L/luna/external/__data__/thirdparty -llunacore -lSSDK -o my_project.exe\n   ```\n\n\u003cbr\u003e\n\n## luna Contributors\n\n\u003ca href=\"https://github.com/r3shape/luna/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=r3shape/luna\"/\u003e\n\u003c/a\u003e\n\n\u003cbr\u003e\n\n## License\n\nluna is licensed under the **MIT License**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr3shape%2Fluna","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr3shape%2Fluna","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr3shape%2Fluna/lists"}