{"id":15103935,"url":"https://github.com/looobay/love2d-button","last_synced_at":"2026-01-19T11:32:02.071Z","repository":{"id":236339933,"uuid":"792407439","full_name":"Looobay/LOVE2D-button","owner":"Looobay","description":"A simple library for creating buttons with LÖVE 2D.","archived":false,"fork":false,"pushed_at":"2024-05-10T09:49:02.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T23:51:19.255Z","etag":null,"topics":["buttons","love2d","lua"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/Looobay.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":"2024-04-26T15:52:55.000Z","updated_at":"2024-05-10T09:49:21.000Z","dependencies_parsed_at":"2024-09-20T10:30:21.636Z","dependency_job_id":null,"html_url":"https://github.com/Looobay/LOVE2D-button","commit_stats":{"total_commits":39,"total_committers":1,"mean_commits":39.0,"dds":0.0,"last_synced_commit":"ac2b79e21c15b41aa67a75d0cef871325978f7d7"},"previous_names":["looobay/love2d-button"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Looobay%2FLOVE2D-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Looobay%2FLOVE2D-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Looobay%2FLOVE2D-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Looobay%2FLOVE2D-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Looobay","download_url":"https://codeload.github.com/Looobay/LOVE2D-button/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247335830,"owners_count":20922517,"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":["buttons","love2d","lua"],"created_at":"2024-09-25T19:43:50.482Z","updated_at":"2026-01-19T11:32:02.065Z","avatar_url":"https://github.com/Looobay.png","language":"Lua","readme":"# LOVE2D-button\nA simple library for creating buttons with LÖVE 2D.\n\n### Little warning:\nThis project is not finished yet so you may encounter some bugs !\n\n## Features:\n* Execute function on click\n* Can easily remove buttons with `button:delete()`\n* You can easily modify the code ! (because it is very lite)\n\n## How it's work:\n* First step, require the librarie :\n```lua\nbutton = require \"button.lua\"\n```\n\n* Second step, adding `button:new()` to `love.load()`, `button:update(dt)` to `love.update(dt)` and `button:draw()` to `love.draw()`.\n````lua\nfunction love.load()\n  button:new(--Put your button here)\nend\n\nfunction love.update(dt)\n  button:update(dt)\nend\n\nfunction love.draw()\n  button:draw()\nend\n````\n\n* Third step, create your button in `love.load()` like this:\n````lua\nExampleButton = {button:new(300, 150,150,100,{1,1,1}, \"Example\", {0,0,0}, function()print(\"Example\")end, false)}\n````\nDONT FORGET !!! -\u003e YOUR BUTTON IS A TABLE WITH THE `button:new()` INSIDE.\n\nYou can check the `example` folder to see an example LÖVE2D project with the librarie.\n\n## Result:\n\n![alt text](example.png)\n## Other tips:\n* How to use the `button:delete()` function:\n````lua\nbutton:delete(ExampleButton)\n````\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flooobay%2Flove2d-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flooobay%2Flove2d-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flooobay%2Flove2d-button/lists"}