{"id":18947207,"url":"https://github.com/candrewlee14/tetris-raylib","last_synced_at":"2026-03-02T09:32:34.819Z","repository":{"id":216729235,"uuid":"742169020","full_name":"candrewlee14/tetris-raylib","owner":"candrewlee14","description":"Tetris clone built with Raylib","archived":false,"fork":false,"pushed_at":"2024-12-19T19:45:12.000Z","size":6850,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-05T12:48:14.830Z","etag":null,"topics":["c","raylib","tetris","zig"],"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/candrewlee14.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-11T22:33:10.000Z","updated_at":"2024-12-19T19:45:16.000Z","dependencies_parsed_at":"2025-09-05T12:31:20.199Z","dependency_job_id":"d489e743-b376-443b-93d2-60767d055edb","html_url":"https://github.com/candrewlee14/tetris-raylib","commit_stats":null,"previous_names":["candrewlee14/tetris-raylib"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/candrewlee14/tetris-raylib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candrewlee14%2Ftetris-raylib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candrewlee14%2Ftetris-raylib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candrewlee14%2Ftetris-raylib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candrewlee14%2Ftetris-raylib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/candrewlee14","download_url":"https://codeload.github.com/candrewlee14/tetris-raylib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/candrewlee14%2Ftetris-raylib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29997213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["c","raylib","tetris","zig"],"created_at":"2024-11-08T13:09:16.216Z","updated_at":"2026-03-02T09:32:34.778Z","avatar_url":"https://github.com/candrewlee14.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/candrewlee14/tetris-raylib/assets/32912555/aa5a2007-718d-46d2-8b6c-023236e18f74\"/\u003e\n\u003c/p\u003e \n\n# Tetris-Raylib\n\n\nI made for this for [Coding Challenges](https://codingchallenges.fyi/)'s Tetris challenge.\n\nI wanted to try hot reloading in C through recompiling \u0026 reloading the core game logic as a shared library.\nBeing a big Zig fan, I decided to use Zig's build system to enable doing this in debug mode, but compile it all statically in release modes.\nIf you hit the 'R' key in-game in a debug build, the game will reload but the state will be retained.\n\nMy final goal was getting this to run on the Steam Deck, which in the end worked wonderfully (see [tweet](https://x.com/c_andrew_lee/status/1748146829504692384?s=20))!\n\n## Features\n- Working Tetris game\n- Supports Linux \u0026 Macos\n- Keyboard \u0026 Mouse + Controller Support\n- Music \u0026 Sound Effects\n- Windowed \u0026 Fullscreen Modes\n\n## Setup\n\n- You'll need Zig, which you can get [here](https://ziglang.org/download/). I'm currently using the latest nightly: `0.12.0-dev.2139+e025ad7b4`. This includes a C compiler with `zig cc`!\n- You will also need the Raylib development library dependencies. See the _Working on {YOUR OS}_ sections of Raylib's [wiki](https://github.com/raysan5/raylib/wiki).\n\nNow you're ready to go!\n\nTo run a debug build, run:\n```bash\nzig build run\n```\n\nTo run a release build, run:\n```bash\nzig build -Doptimize=ReleaseSafe run\n```\n\nYou can run in fullscreen mode with the `--fullscreen` flag.\n```\nzig build run -- --fullscreen\n```\n\n![image](https://github.com/candrewlee14/tetris-raylib/assets/32912555/7657e5df-1859-4a0e-8f92-46fc7d482844)\n\n\u003e This image was made for the purposes of a colorful screenshot, ignore all the gaps :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandrewlee14%2Ftetris-raylib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcandrewlee14%2Ftetris-raylib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandrewlee14%2Ftetris-raylib/lists"}