{"id":16187020,"url":"https://github.com/robloach/raylib-lua-sol","last_synced_at":"2025-03-16T10:32:07.839Z","repository":{"id":52511979,"uuid":"183373976","full_name":"RobLoach/raylib-lua-sol","owner":"RobLoach","description":"A simple and easy-to-use Lua library to enjoy videogames programming","archived":false,"fork":false,"pushed_at":"2023-06-26T13:37:01.000Z","size":13962,"stargazers_count":84,"open_issues_count":14,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-02T19:22:05.111Z","etag":null,"topics":["lua","raylib","sol2"],"latest_commit_sha":null,"homepage":"http://www.raylib.com/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobLoach.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}},"created_at":"2019-04-25T06:49:51.000Z","updated_at":"2024-08-03T02:23:19.282Z","dependencies_parsed_at":"2024-08-03T02:33:21.816Z","dependency_job_id":null,"html_url":"https://github.com/RobLoach/raylib-lua-sol","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Fraylib-lua-sol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Fraylib-lua-sol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Fraylib-lua-sol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobLoach%2Fraylib-lua-sol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobLoach","download_url":"https://codeload.github.com/RobLoach/raylib-lua-sol/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221663041,"owners_count":16859779,"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":["lua","raylib","sol2"],"created_at":"2024-10-10T07:20:03.321Z","updated_at":"2024-10-27T10:27:00.675Z","avatar_url":"https://github.com/RobLoach.png","language":"C++","readme":"![raylib-lua-sol Logo](logo/raylib-lua-sol_256x256.png)\n\n# raylib-lua-sol\n\n[Lua](http://www.lua.org/) bindings for [raylib](https://www.raylib.com/), a simple and easy-to-use library to enjoy videogames programming, with [sol](https://github.com/ThePhD/sol2) (www.raylib.com)\n\n*raylib-lua-sol* bindings are self-contained in a header-only file: [raylib-lua-sol.hpp](include/raylib-lua-sol.hpp). Just include that file\nin your project to allow loading and execution of raylib code written in Lua and Sol.\n\n*raylib-lua-sol* could be useful for prototyping, tools development, graphic applications, embedded systems and education.\n\nReady to learn? Check out the [code examples](examples)!\n\n## Example\n\n``` lua\nlocal screenWidth = 800\nlocal screenHeight = 450\n\nInitWindow(screenWidth, screenHeight, \"raylib [core] example - basic window\")\n\nSetTargetFPS(60)\n\nwhile not WindowShouldClose() do\n    BeginDrawing()\n        ClearBackground(RAYWHITE)\n        DrawText(\"Congrats! You created your first window!\", 190, 200, 20, LIGHTGRAY)\n    EndDrawing()\nend\nCloseWindow()\n```\n\n## CLI\n\nA [`raylib-lua-sol`](bin/raylib-lua-sol.cpp) CLI launcher is provided. This launcher allows you to run raylib lua programs from command line, or just with *drag \u0026 drop* of .lua files into *raylib-lua-sol.exe*.\n\nNote that launcher can also be compiled for other platforms, just need to link with Lua, raylib and sol libraries. For more details, just check comments on sources.\n\n``` bash\nbin/raylib-lua-sol examples/core_basic_window.lua\n```\n\n## Prebuild On Windows\n\nRequire:\n\n- C Compiler: MinGW([Cygwin](https://cygwin.com/install.html),...) or [Visual Studio](https://visualstudio.microsoft.com/downloads/).\n- [CMake](https://cmake.org/download/).\n\n## Prebuild On GNU Linux\n\n```bash\nsudo apt install build-essential git cmake\n```\n\n### Unbuntu\n\n```bash\nsudo apt install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev\n```\n\n### Fedora\n\n```bash\nsudo dnf install alsa-lib-devel mesa-libGL-devel libX11-devel libXrandr-devel libXi-devel libXcursor-devel libXinerama-devel\n```\n\n## Build\n\n*raylib-lua-sol* uses cmake as a primary development target. Would appreciate adding more project templates, however.\n\n``` bash\ngit clone https://github.com/RobLoach/raylib-lua-sol.git\ncd raylib-lua-sol\ngit submodule update --init\ncmake -B build .\ncmake --build build --config Release\n```\n\n## Development\n\nTo run tests, use `make test`...\n\n``` bash\ncd build\nmake test\n```\n\n# License\n\nraylib-lua-sol is licensed under an unmodified zlib/libpng license, which is an OSI-certified,\nBSD-like license that allows static linking with closed source software. Check [LICENSE](LICENSE) for further details.\n\n*Copyright (c) 2019 Rob Loach ([@RobLoach](https://twitter.com/RobLoach))*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobloach%2Fraylib-lua-sol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobloach%2Fraylib-lua-sol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobloach%2Fraylib-lua-sol/lists"}