{"id":20614836,"url":"https://github.com/dashed/tetris-sdl-c","last_synced_at":"2025-04-15T07:33:30.617Z","repository":{"id":15006367,"uuid":"17731871","full_name":"dashed/tetris-sdl-c","owner":"dashed","description":"🕹️ A toy project implementing a simple tetris clone in C for learning SDL 2.x.","archived":false,"fork":false,"pushed_at":"2017-12-24T21:56:12.000Z","size":440,"stargazers_count":82,"open_issues_count":4,"forks_count":21,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-28T17:57:26.830Z","etag":null,"topics":["c","game","sdl2","tetris"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"coreos/coreos-overlay","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dashed.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}},"created_at":"2014-03-14T01:34:13.000Z","updated_at":"2025-02-04T07:52:54.000Z","dependencies_parsed_at":"2022-09-16T01:03:13.894Z","dependency_job_id":null,"html_url":"https://github.com/dashed/tetris-sdl-c","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashed%2Ftetris-sdl-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashed%2Ftetris-sdl-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashed%2Ftetris-sdl-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashed%2Ftetris-sdl-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashed","download_url":"https://codeload.github.com/dashed/tetris-sdl-c/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249027075,"owners_count":21200557,"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","game","sdl2","tetris"],"created_at":"2024-11-16T11:13:42.764Z","updated_at":"2025-04-15T07:33:30.598Z","avatar_url":"https://github.com/dashed.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"tetris-sdl-c\n============\n\nA simple tetris game implemented in C using SDL 2.x.\nThis is just a toy project to play with and learn SDL 2.x.\n\n**Demo on Snow Leopard OSX:**\n\n![](demo.gif)\n\n**Demo on El Capitan OSX:**\n\n[![](https://thumbs.gfycat.com/CraftyEntireCleanerwrasse-size_restricted.gif)](https://gfycat.com/gifs/detail/CraftyEntireCleanerwrasse)\n\nInstall\n=======\n\n1.  Install SDL 2.x ([www.libsdl.org](http://www.libsdl.org/)) in UNIX style; something like `./configure \u0026\u0026 make \u0026\u0026 make install`.\n\n    Also you'll need:\n\n    - `sdl2_ttf`: https://www.libsdl.org/projects/SDL_ttf/\n    - `sdl2_gfx`: http://cms.ferzkopp.net/index.php/software/13-sdl-gfx\n\n    On OSX (or macOS), you may use [homebrew](http://brew.sh/):\n\n    ```sh\n    # As of Dec 2, 2017\n\n    brew install sdl2\n\n    # http://formulae.brew.sh/formula/sdl2_gfx\n    brew install sdl2_gfx\n\n    # http://formulae.brew.sh/formula/sdl2_ttf\n    brew install sdl2_ttf\n    ```\n\n2. `make` to create `tetris_toy`\n\n3. `./tetris_toy`\n\nUsage\n=====\n\n- Move tetromino with WASD keys or arrow keys.\n- Press `spacebar` for hard Tetromino drop.\n\n- Press `r` to reset.\n- Press `esc` to quit.\n\n\nTo Do\n=====\n\n- Add wall kick\n- Implement any other interesting mechanics listed in http://tetrisconcept.net/wiki/Main_Page\n\nLicense\n=======\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashed%2Ftetris-sdl-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashed%2Ftetris-sdl-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashed%2Ftetris-sdl-c/lists"}