{"id":51476000,"url":"https://github.com/alberto2005-coder/tetris-game","last_synced_at":"2026-07-06T21:01:06.747Z","repository":{"id":317349978,"uuid":"1067032291","full_name":"alberto2005-coder/Tetris-Game","owner":"alberto2005-coder","description":"Juego del tetris usando libreria gráfica de c++","archived":false,"fork":false,"pushed_at":"2026-03-16T18:56:31.000Z","size":574,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-17T05:37:04.107Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/alberto2005-coder.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":"2025-09-30T09:40:27.000Z","updated_at":"2026-03-16T18:56:35.000Z","dependencies_parsed_at":"2025-09-30T11:36:46.067Z","dependency_job_id":"6b6e5dc2-5b97-45e0-875c-73fa38d07e74","html_url":"https://github.com/alberto2005-coder/Tetris-Game","commit_stats":null,"previous_names":["alberto2005-coder/tetris-game"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alberto2005-coder/Tetris-Game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alberto2005-coder%2FTetris-Game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alberto2005-coder%2FTetris-Game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alberto2005-coder%2FTetris-Game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alberto2005-coder%2FTetris-Game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alberto2005-coder","download_url":"https://codeload.github.com/alberto2005-coder/Tetris-Game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alberto2005-coder%2FTetris-Game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35205739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"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":[],"created_at":"2026-07-06T21:01:05.785Z","updated_at":"2026-07-06T21:01:06.739Z","avatar_url":"https://github.com/alberto2005-coder.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tetris en C++ con SFML\n\n¡Bienvenido a **Tetris en C++**! 🟦🟩🟥🟨 Este proyecto implementa el clásico juego de Tetris usando la librería gráfica **SFML**.\n\n---\n\n## 🎮 Características\n- Piezas clásicas de Tetris (7 tetrominós)\n- Rotación, colisiones y fijación de piezas\n- Eliminación de líneas y puntuación\n- Controles de movimiento, soft drop y hard drop\n- Pantalla de *Game Over* con opción de reiniciar\n\n---\n\n## ⚙️ Requisitos\n- **MSYS2 + MinGW UCRT64** (Windows) o compilador g++ en Linux/Mac\n- **SFML 2.5+** instalada\n\n### Instalación de SFML en MSYS2 (Windows)\n1. Abrir la terminal **MSYS2 UCRT64**\n2. Instalar SFML:\n   ```bash\n   pacman -S mingw-w64-ucrt-x86_64-sfml\n   ```\n\n---\n\n## 🚀 Compilación\nDesde la terminal **UCRT64**:\n```bash\ncd /c/Users/\u003cTU_USUARIO\u003e/Downloads/tetris\n\n# Compilar con SFML\ng++ tetris.cpp -o tetris.exe \\\n   -I\"C:/msys64/ucrt64/include\" \\\n   -L\"C:/msys64/ucrt64/lib\" \\\n   -lsfml-graphics -lsfml-window -lsfml-system\n```\n\n---\n\n## ▶️ Ejecución\n```bash\n./tetris.exe\n```\nSi aparecen errores de **DLL faltante**, copia los `.dll` desde:\n```\nC:/msys64/ucrt64/bin/\n```\na la carpeta del ejecutable.\n\n---\n\n## ⌨️ Controles\n| Tecla      | Acción            |\n|------------|-------------------|\n| ← / →      | Mover pieza       |\n| ↑          | Rotar pieza       |\n| ↓          | Soft drop         |\n| Espacio    | Hard drop         |\n| R          | Reiniciar juego   |\n\n---\n\n## 📝 Fuente (TTF)\nEl juego requiere una fuente TrueType (`.ttf`) para mostrar texto:\n- **Linux:** `/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf`\n- **Windows:** coloca `Arial.ttf` o `DejaVuSans.ttf` en la carpeta del ejecutable y cambia la ruta en el código:\n```cpp\nfont.loadFromFile(\"arial.ttf\");\n```\n\n---\n\n## 📜 Licencia\nEste proyecto está bajo la **Licencia MIT**. Consulta el archivo [LICENSE](LICENSE) para más detalles.\n\n---\n\n¡Disfruta programando y jugando tu propio Tetris! 🎮","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falberto2005-coder%2Ftetris-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falberto2005-coder%2Ftetris-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falberto2005-coder%2Ftetris-game/lists"}