{"id":24749945,"url":"https://github.com/inunix3/wetris","last_synced_at":"2026-02-13T13:02:36.627Z","repository":{"id":274582101,"uuid":"922764669","full_name":"inunix3/wetris","owner":"inunix3","description":"A tetris clone using SDL3.","archived":false,"fork":false,"pushed_at":"2025-02-26T01:48:25.000Z","size":1135,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T02:32:28.743Z","etag":null,"topics":["c","c11","game","game-development","gamedev","sdl","sdl3","sdl3-image","sdl3-mixer","sdl3-ttf"],"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/inunix3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2025-01-27T02:37:53.000Z","updated_at":"2025-02-26T01:48:28.000Z","dependencies_parsed_at":"2025-01-28T07:23:27.748Z","dependency_job_id":"dbd996af-99db-4497-9e4a-5141103ff88a","html_url":"https://github.com/inunix3/wetris","commit_stats":null,"previous_names":["inunix3/wetris"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inunix3%2Fwetris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inunix3%2Fwetris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inunix3%2Fwetris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inunix3%2Fwetris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inunix3","download_url":"https://codeload.github.com/inunix3/wetris/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245048280,"owners_count":20552483,"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":["c","c11","game","game-development","gamedev","sdl","sdl3","sdl3-image","sdl3-mixer","sdl3-ttf"],"created_at":"2025-01-28T08:52:51.246Z","updated_at":"2026-02-13T13:02:31.591Z","avatar_url":"https://github.com/inunix3.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wetris\n\nA tetris clone written in C11 and using SDL3.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"screenshots/screenshot.png\" alt=\"a screenshot of the tetris\"\u003e\n\u003c/p\u003e\n\n## Building on Linux\n\n```\nmkdir build; cd build\ncmake -G 'your favorite generator' -DCMAKE_BUILD_TYPE=Release ..\ncmake --build .\n```\n\nCurrently SDL3 is not widely installable from repositories, so you'll probably need to pass\n`-DVENDORED_LIBS=ON` to build SDL3 and its extensions.\n\nAfter a successful building, binary `src/wetris` will be lying in the build directory.\n\nIf you like my tetris, you can also install it from the build directory:\n\n```\nsudo cmake --install .\n```\n\n## Building on Windows\n\nYou can obtain prebuilt binaries from the [Releases](https://github.com/inunix3/wetris/releases) page.\n\n### Compiling from sources\n\nCreate a build directory:\n\n```\nmkdir build; cd build\n```\n\nIf you're going to use multi-config generator like Visual Studio, these flags must be passed, and\nthe build type must be specified in build-time:\n\n```\ncmake -G 'your favorite generator' -DVENDORED_LIBS=ON -DSDLIMAGE_VENDORED=ON -DSDLMIXER_VENDORED=ON -DSDLTTF_VENDORED=ON ..\ncmake --build . --config Release\n```\n\nIf you wish to use single-config generator like MinGW makefiles:\n\n```\ncmake -G 'your favorite generator' -DCMAKE_BUILD_TYPE=Release -DVENDORED_LIBS=ON -DSDLIMAGE_VENDORED=ON -DSDLMIXER_VENDORED=ON -DSDLTTF_VENDORED=ON ..\ncmake --build .\n```\n\nAlthough if you're using MinGW, you can actually try to copy SDL3 and its extensions into\ncompiler directories from packages marked as devel.\nThe SDL libraries can be obtained from [their repositories](https://github.com/libsdl-org).\n\nAfter a successful building, binary `src/wetris.exe` will be lying in the build directory.\n\n## Controls\n\n| Key           | Action                  |\n|---------------|-------------------------|\n| `escape`      | Quit                    |\n| `a` / `left`  | Move left               |\n| `d` / `right` | Move right              |\n| `q`           | Rotate counterclockwise |\n| `e`           | Rotate clockwise        |\n| `s` / `down`  | Speed up falling        |\n| `space`       | Drop                    |\n| `p`           | Pause                   |\n\n## Contribution\n\nIf you have found a problem or have a suggestion, feel free to open an issue or send a pull request.\nI'd appreciate it.\n\n## Notice\n\nUsed font is **The PC Paint Font Collection** made by [codeman38](https://www.zone38.net/font/).\n\nGraphics were made in [Aseprite](https://www.aseprite.org/) and [Gimp](https://www.gimp.org/),\nsound effects in [MilkyTracker](https://milkytracker.org/) and [Audacity](https://www.audacityteam.org/).\n\n## License\n\nwetris is licensed under the [MIT license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finunix3%2Fwetris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finunix3%2Fwetris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finunix3%2Fwetris/lists"}