{"id":16327456,"url":"https://github.com/subztep/css-tetris-3d","last_synced_at":"2025-08-26T06:39:34.162Z","repository":{"id":78820755,"uuid":"338010185","full_name":"SubZtep/css-tetris-3d","owner":"SubZtep","description":"Tetris-like code experiment in the CSS 3D space.","archived":false,"fork":false,"pushed_at":"2021-02-25T16:54:59.000Z","size":43313,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-11T00:07:12.967Z","etag":null,"topics":["css3d","experimental","tetris","wip"],"latest_commit_sha":null,"homepage":"https://subztep.github.io/css-tetris-3d","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SubZtep.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}},"created_at":"2021-02-11T11:31:08.000Z","updated_at":"2023-01-11T08:50:44.000Z","dependencies_parsed_at":"2023-05-25T21:45:47.818Z","dependency_job_id":null,"html_url":"https://github.com/SubZtep/css-tetris-3d","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SubZtep/css-tetris-3d","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SubZtep%2Fcss-tetris-3d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SubZtep%2Fcss-tetris-3d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SubZtep%2Fcss-tetris-3d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SubZtep%2Fcss-tetris-3d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SubZtep","download_url":"https://codeload.github.com/SubZtep/css-tetris-3d/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SubZtep%2Fcss-tetris-3d/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272186209,"owners_count":24888332,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"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":["css3d","experimental","tetris","wip"],"created_at":"2024-10-10T23:11:29.248Z","updated_at":"2025-08-26T06:39:34.145Z","avatar_url":"https://github.com/SubZtep.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSS Tetris 3D\n\n\u003e :construction: **Work In Progress**..._ish_ ヾ(`ヘ ´)ﾉﾞ\n\nThis is an unfinished _Tetris_ game implied experiment with [CSS 3D](https://developer.mozilla.org/en-US/docs/Web/CSS/transform-style) view and belonging perspective settings.\n\n_Tetromino_ aka block movement is implemented as expected but rotation only on the Z axis is enabled by default. Collision detection in 3D space goes beyond the original purpose of this thing.\n\n## Demo\n\n**Live on [GitHub Pages](https://subztep.github.io/css-tetris-3d/).**\n\nRunning locally as usual — `clone \u0026\u0026 npm i \u0026\u0026 npm start`.\n\n## Configured Inputs\n\n| Input                               | Event                                         |\n| ----------------------------------- | --------------------------------------------- |\n| ~~Up / W~~                          | ~~Move (or rotate) on X axis~~                |\n| ~~Down / S~~                        | ~~Move (or rotate) on X axis backwards~~      |\n| Left / A                            | Move (or rotate) on Y axis                    |\n| Right / D                           | Move (or rotate) on Y axis backwards          |\n| _Q_                                 | _Move on Z axis backwards (for test :ghost:)_ |\n| _E_                                 | _Move on Z axis (for test :ghost:)_           |\n| _(left?)_ SHIFT or ALT + _move key_ | Toggle rotation                               |\n| SHIFT + Mouse move                  | Perspective follows mouse cursor              |\n| Mouse scroll                        | Change perspective                            |\n| Both mouse buttons                  | Pointless perspective underload               |\n\n## GUI\n\nFor other tweaks please find the implemented [dat.GUI](https://github.com/dataarts/dat.gui) runtime. The most intriguing state parameters are connected. Probably only these toggleables below are nebulous.\n\n| Property     | State changes                               |\n| ------------ | ------------------------------------------- |\n| `live`       | Moving tetrominos automatically like a game. |\n| `screwAxisX` | Enable 3D rotation on X axis.                |\n\n## Outcome\n\n- Fun and easy to work with, spectacular with the combination of animation [keyframes](https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes) without any supplementary knowledge.\n- Performance differences are visible — especially with unoptimised code — within different CSS engines.\n- Feels basic compared to WebGL. Aspire to post‒ _Flash_／_jQuery_ image carousel fallout but I don't really see any real-life consumption on this level. However, there is potential to bring [A-Frame](https://github.com/aframevr/aframe/) like 3D markup for messes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubztep%2Fcss-tetris-3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubztep%2Fcss-tetris-3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubztep%2Fcss-tetris-3d/lists"}