{"id":18675755,"url":"https://github.com/megagrump/yuema","last_synced_at":"2025-04-12T02:11:50.022Z","repository":{"id":215194985,"uuid":"455944490","full_name":"megagrump/yuema","owner":"megagrump","description":"raylib + LuaJIT + Yuescript","archived":false,"fork":false,"pushed_at":"2022-03-01T11:40:05.000Z","size":617,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T02:11:45.077Z","etag":null,"topics":["game-development","lua","luajit","raylib","yuescript"],"latest_commit_sha":null,"homepage":"","language":"MoonScript","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/megagrump.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":"2022-02-05T17:57:38.000Z","updated_at":"2025-01-19T09:50:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"29e02d3c-edba-4ccd-a8e7-b48b6ca26264","html_url":"https://github.com/megagrump/yuema","commit_stats":null,"previous_names":["megagrump/yuema"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megagrump%2Fyuema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megagrump%2Fyuema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megagrump%2Fyuema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megagrump%2Fyuema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/megagrump","download_url":"https://codeload.github.com/megagrump/yuema/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505928,"owners_count":21115354,"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":["game-development","lua","luajit","raylib","yuescript"],"created_at":"2024-11-07T09:26:12.090Z","updated_at":"2025-04-12T02:11:50.013Z","avatar_url":"https://github.com/megagrump.png","language":"MoonScript","funding_links":[],"categories":["Game Engines"],"sub_categories":["emacs"],"readme":"# Yuema\n\nYuema is a Lua-based programming framework combining [raylib](https://github.com/raysan5/raylib) (and some of its accompanying libraries), [Box2D](https://github.com/erincatto/box2d), [LuaJIT](https://github.com/LuaJIT/LuaJIT) and [Yuescript](https://github.com/pigpigyyy/Yuescript) into a stand-alone executable with minimal external dependencies.\n\nYou can use it to write 2D and 3D games in [Lua](https://www.lua.org/) or [Yuescript](http://yuescript.org), a [MoonScript](https://moonscript.org/) derivative that compiles to Lua. Yuescript integration is seamless with no extra compilation step required.\n\n![yuema1](https://user-images.githubusercontent.com/31128870/152654645-fc42539f-b09d-4257-a525-11d3f9058327.png)\n\n![yuema2](https://user-images.githubusercontent.com/31128870/152654647-da90a5d0-3904-466e-b0c0-e11e906c9c14.png)\n\n![yuema3](https://user-images.githubusercontent.com/31128870/152654649-9f07a8c1-67a5-494c-8514-f79bb51ff2be.png)\n\n![yuema_box2d](https://user-images.githubusercontent.com/31128870/153551507-26d94ece-6d52-4757-abeb-7d2d6fcc4ebb.png)\n\n## Work in progress!\n\nThe API is not stable and will change frequently.\n\n## How to build\n\nMake sure you clone with submodules:\n\n    git clone --recurse-submodules git@github.com:megagrump/yuema.git\n\n### Linux\n\n#### 1. Install dependencies \n\nDebian based (Ubuntu, etc.)\n\n    sudo apt install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev\n\nRedHat based (Fedora, etc.)\n\n    sudo dnf install alsa-lib-devel mesa-libGL-devel libX11-devel libXrandr-devel libXi-devel libXcursor-devel libXinerama-devel\n\nCMake is required also.\n\n#### 2. Build\n\n```\nmkdir build\ncd build\ncmake ..\nmake\n```\n\n### Windows\n\nThe [MSYS](https://www.msys2.org/) MinGW compiler suite is used to create binaries for Windows. Additionally, `mingw-w64-x86_64-cmake` is required to build the project.\nThe `/mingw64/bin` directory is expected to be in your `$PATH`.\n\n```\nmkdir build\ncd build\ncmake -G \"MSYS Makefiles\" ..\nmake\n```\n\n### Other platforms/compilers\n\nNo one has tried yet.\n\n## Examples\n\nSome examples can be found in the `examples` directory.\n\n```\n./build/yuema examples/gui_controls.yue\n./build/yuema examples/core_3d_camera_first_person.yue\n./build/yuema examples/models_mesh_picking.yue\n./build/yuema examples/box2d_joints.yue\n```\n\nYou **must** run the examples from the project root. \n\n# How to make your own game with yuema\n\nYou currently have to manually bootstrap new projects, but it's simple:\n\n1. Build yuema or download a binary release.\n2. Create a new directory for your project, for example `/home/alice/myproject` or `C:\\projects\\myproject`.\n3. Copy the yuema executable (`yuema` or `yuema.exe` on Windows) to the project directory and rename it, for example `myproject` (or `myproject.exe`).\n4. Copy the `lib` directory to the project directory.\n5. Create a `main.lua` or `main.yue` file in the project directory. This is your project's entry point.\n```\nmyproject          \u003c-- project directory\n  /lib             \u003c-- library code\n  main.yue         \u003c-- code entry point\n  myproject(.exe)  \u003c-- executable\n```\nYou can run your project by starting `myproject` from the project directory.\n\n## Code and libraries used in this project\n\n* raylib: https://github.com/raysan5/raylib Copyright (c) 2013-2022 Ramon Santamaria\n* raygui: https://github.com/raysan5/raygui Copyright (c) 2014-2022 Ramon Santamaria\n* Box2D: https://github.com/erincatto/box2d Copyright (c) 2019 Erin Catto\n* LuaJIT: https://github.com/LuaJIT/LuaJIT Copyright (C) 2005-2022 Mike Pall\n* Yuescript: https://github.com/pigpigyyy/Yuescript Copyright (c) 2021 Li Jin\n* luautf8: https://github.com/starwing/luautf8 Copyright (c) 2018 Xavier Wang\n* CParser: https://github.com/facebookresearch/CParser Copyright (c) Facebook, Inc. and its affiliates.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegagrump%2Fyuema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmegagrump%2Fyuema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegagrump%2Fyuema/lists"}