{"id":29091123,"url":"https://github.com/mukeshlilawat1/tetris-game-using-cpp","last_synced_at":"2026-04-24T12:05:22.071Z","repository":{"id":301161954,"uuid":"1008333700","full_name":"mukeshlilawat1/Tetris-Game-Using-Cpp","owner":"mukeshlilawat1","description":"A modern recreation of the classic Tetris game built in C++ using the Raylib game development library. This project demonstrates the fundamentals of game loops, collision detection, matrix transformations, and rendering using a lightweight graphics engine.","archived":false,"fork":false,"pushed_at":"2025-06-25T12:37:48.000Z","size":285,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-25T13:28:14.438Z","etag":null,"topics":["c","cpp","raylib-cpp"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mukeshlilawat1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-06-25T11:37:07.000Z","updated_at":"2025-06-25T12:37:53.000Z","dependencies_parsed_at":"2025-06-25T13:41:50.799Z","dependency_job_id":null,"html_url":"https://github.com/mukeshlilawat1/Tetris-Game-Using-Cpp","commit_stats":null,"previous_names":["mukeshlilawat1/tetris-game-using-cpp"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mukeshlilawat1/Tetris-Game-Using-Cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshlilawat1%2FTetris-Game-Using-Cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshlilawat1%2FTetris-Game-Using-Cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshlilawat1%2FTetris-Game-Using-Cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshlilawat1%2FTetris-Game-Using-Cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mukeshlilawat1","download_url":"https://codeload.github.com/mukeshlilawat1/Tetris-Game-Using-Cpp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshlilawat1%2FTetris-Game-Using-Cpp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262382729,"owners_count":23302296,"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","cpp","raylib-cpp"],"created_at":"2025-06-28T06:05:39.083Z","updated_at":"2026-04-24T12:05:21.980Z","avatar_url":"https://github.com/mukeshlilawat1.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎮 Tetris Game in C++ using Raylib\n\nA modern recreation of the classic **Tetris** game built with **C++** and the lightweight **Raylib** graphics library.  \nThis project focuses on the fundamentals of game development such as game loops, collision detection, input handling, and real-time rendering.\n\n---\n\n## 🔧 Features\n\n- 🎲 Classic Tetris mechanics  \n- 🎨 Smooth 2D graphics using Raylib  \n- 🧱 Real-time falling blocks with rotation  \n- 💥 Line-clearing logic with scoring  \n- 🎮 Keyboard controls  \n- 🔁 Restart functionality after game over  \n\n---\n\n## 🧰 Tech Stack\n\n- **Language**: C++  \n- **Graphics Library**: [Raylib](https://www.raylib.com)  \n- **Build Tools**: GCC / g++ (Linux or Windows), or CMake (optional)\n\n---\n\n## 🚀 How to Run\n\n### 1. Install Raylib\n\nFollow Raylib installation steps from:  \n👉 [Raylib Wiki – Installation](https://github.com/raysan5/raylib/wiki#installation)\n\n### 2. Clone this Repository\n\n```bash\ngit clone https://github.com/your-username/tetris-raylib.git\ncd tetris-raylib\n```\n## Build and Run\n## On Linux / macOS:\n```bash\ng++ main.cpp -o tetris -lraylib -lGL -lm -lpthread -ldl -lrt -lX11\n./tetris\n```\n## On Windows (MinGW):\n```bash\ng++ main.cpp -o tetris.exe -lraylib -lopengl32 -lgdi32 -lwinmm\n./tetris.exe\n```\n\n## 📚 Learnings\n- **This project helped understand:**\n- **Game loop architecture**\n= **Real-time graphics with Raylib**\n- **2D grid manipulation using arrays**\n- **Collision detection logic**\n- **Input handling in C++**\n\n  ## 📄 License\n- **This project is licensed under the MIT License.**\n- **Feel free to use, modify, or distribute for personal and educational purposes.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmukeshlilawat1%2Ftetris-game-using-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmukeshlilawat1%2Ftetris-game-using-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmukeshlilawat1%2Ftetris-game-using-cpp/lists"}