{"id":17011240,"url":"https://github.com/sysl-dev/loving-2bpp","last_synced_at":"2026-05-18T06:02:56.746Z","repository":{"id":191061039,"uuid":"683847371","full_name":"sysl-dev/Loving-2BPP","owner":"sysl-dev","description":"A Library for Love2D to read 2BPP (Console/Handheld) Graphics","archived":false,"fork":false,"pushed_at":"2023-08-27T22:11:51.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T14:02:38.050Z","etag":null,"topics":["gameboy","image","love2d","lua","nes"],"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/sysl-dev.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":"2023-08-27T22:10:46.000Z","updated_at":"2023-10-12T03:05:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"ec737c50-02ab-4da5-bfa5-ec2dc379adfa","html_url":"https://github.com/sysl-dev/Loving-2BPP","commit_stats":null,"previous_names":["sysl-dev/loving-2bpp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sysl-dev/Loving-2BPP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysl-dev%2FLoving-2BPP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysl-dev%2FLoving-2BPP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysl-dev%2FLoving-2BPP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysl-dev%2FLoving-2BPP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sysl-dev","download_url":"https://codeload.github.com/sysl-dev/Loving-2BPP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sysl-dev%2FLoving-2BPP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33167430,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T05:43:36.989Z","status":"ssl_error","status_checked_at":"2026-05-18T05:43:19.133Z","response_time":71,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["gameboy","image","love2d","lua","nes"],"created_at":"2024-10-14T06:06:34.682Z","updated_at":"2026-05-18T06:02:56.701Z","avatar_url":"https://github.com/sysl-dev.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Loving 2BPP\nThis is a small library for Love2D to render 2BPP data into the ImageData format for whatever you want to do with it.\nIncluded with this library is:\n\n - An example of 2bpp graphics\n - A **Very Cursed Method** to read the data.\n### Using Loving 2BPP\n```lua\n-- Require the library\nlocal loving_2bpp =  require(\"loving2bpp\")\n-- Read in the file\nloving_2bpp.read(\"2bpp.txt\")\n-- Choose a tile or a page to render\n-- Page example\nlocal page = love.graphics.newImage(loving_2bpp.render_page(1))\n\n-- Tile Example\nlocal tile = love.graphics.newImage(loving_2bpp.convert_tile(1))\n\n-- Then, once done you can draw it like a normal image/split it with quads/etc\nfunction  love.draw()\nlove.graphics.print(\"This is so cursed.\")\nlove.graphics.draw(tile, 20, 20, 0, 4, 4)\nend\n```\n\n### Config\nChange the values directly:\n```lua\nloving_2bpp.config = {\npage_size  =  256  *  8, -- 256 per line\nblock_size  =  16, -- (Tile Layer A, Tile Layer B)\nmax_size  =  1000000, -- 1MB Max Size Import Default\nmode  =  \"console\", -- Console or Handheld, each has different types of 2BPP rendering.\n}\n```\n\n### Read more about the 2BPP format for Console and Handheld\n\n - https://www.huderlem.com/demos/gameboy2bpp.html\n - https://sneslab.net/wiki/Graphics_Format#How_It_Works (This explains it close enough, just up to the 2bpp part)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysl-dev%2Floving-2bpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsysl-dev%2Floving-2bpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsysl-dev%2Floving-2bpp/lists"}