{"id":21698058,"url":"https://github.com/parzibyte/tetris-javascript","last_synced_at":"2025-04-12T12:33:10.493Z","repository":{"id":101794489,"uuid":"301005215","full_name":"parzibyte/tetris-javascript","owner":"parzibyte","description":"Nearly perfect port of Tetris in pure JavaScript / Port casi perfecto del juego de tetris en JavaScript puro","archived":false,"fork":false,"pushed_at":"2020-11-19T23:47:59.000Z","size":4329,"stargazers_count":23,"open_issues_count":0,"forks_count":14,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T07:11:16.775Z","etag":null,"topics":["canvas","game","javascript","port","tetris","tetris-game"],"latest_commit_sha":null,"homepage":"https://parzibyte.me/blog/2020/11/02/tetris-javascript-open-source/","language":"JavaScript","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/parzibyte.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}},"created_at":"2020-10-03T23:54:28.000Z","updated_at":"2025-03-17T11:54:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"47bda6ca-d835-4832-8498-2c7478fcaeff","html_url":"https://github.com/parzibyte/tetris-javascript","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/parzibyte%2Ftetris-javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parzibyte%2Ftetris-javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parzibyte%2Ftetris-javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parzibyte%2Ftetris-javascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parzibyte","download_url":"https://codeload.github.com/parzibyte/tetris-javascript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248566538,"owners_count":21125681,"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":["canvas","game","javascript","port","tetris","tetris-game"],"created_at":"2024-11-25T19:31:14.507Z","updated_at":"2025-04-12T12:33:10.486Z","avatar_url":"https://github.com/parzibyte.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tetris-javascript\n Tetris escrito con JavaScript. Se usa canvas para dibujar el tablero.\n \n ![Parzibyte jugando Tetris programado con JavaScript](https://parzibyte.me/blog/wp-content/uploads/2020/11/Jugando-Tetris-en-JavaScript-juego-open-source.png)\n \n **By parzibyte**\n \n **Tutorial**: https://parzibyte.me/blog/2020/11/02/tetris-javascript-open-source/\n \n **Demo**: https://parzibyte.github.io/tetris-javascript/\n \n\n# Documentación del estilo de código\nPreferimos algo legible a algo \"optimizado\". Por ejemplo, en lugar de:\n```javascript\nreturn !tablero[y][x].ocupado;\n```\nSe prefiere:\n```javascript\nif (tablero[y][x].ocupado){\n    return false\n}else {\n    return true;\n}\n```\n\n# Docs\n\n**Absolute point**: A point with x and y that is absolute to the game board\n\n**Relative point**: A point with inner x and y; for example, a point that conforms a figure\n\n# Files\n**script.js**: just a legacy code file. It is not necessary at all,\nit's just to remember the early development of this port\n\n**tetris.js**: the main file. It contains 3 classes. If you want, you\ncan separate all of them; they are independent.\n\n# About\nProudly brought to you by parzibyte (https://parzibyte.me/blog)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparzibyte%2Ftetris-javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparzibyte%2Ftetris-javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparzibyte%2Ftetris-javascript/lists"}