{"id":15137992,"url":"https://github.com/nightswatchgames/tetris","last_synced_at":"2025-04-05T20:06:56.486Z","repository":{"id":65032505,"uuid":"568642758","full_name":"NightsWatchGames/tetris","owner":"NightsWatchGames","description":"Classical tetris game made with bevy engine.","archived":false,"fork":false,"pushed_at":"2025-03-24T10:54:46.000Z","size":1401,"stargazers_count":105,"open_issues_count":0,"forks_count":17,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T20:06:52.186Z","etag":null,"topics":["bevy","game","rust","tetris"],"latest_commit_sha":null,"homepage":"https://nightswatchgames.github.io/games/tetris/","language":"Rust","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/NightsWatchGames.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":"2022-11-21T05:01:33.000Z","updated_at":"2025-04-05T15:02:36.000Z","dependencies_parsed_at":"2024-08-14T04:12:49.974Z","dependency_job_id":"1dd22adc-6f6f-40c8-8290-ecd560669b09","html_url":"https://github.com/NightsWatchGames/tetris","commit_stats":{"total_commits":73,"total_committers":4,"mean_commits":18.25,"dds":0.0821917808219178,"last_synced_commit":"0dd3de49f9501ec6cb14e33db7f5019da964fe6c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightsWatchGames%2Ftetris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightsWatchGames%2Ftetris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightsWatchGames%2Ftetris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightsWatchGames%2Ftetris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NightsWatchGames","download_url":"https://codeload.github.com/NightsWatchGames/tetris/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393569,"owners_count":20931812,"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":["bevy","game","rust","tetris"],"created_at":"2024-09-26T07:04:09.873Z","updated_at":"2025-04-05T20:06:56.461Z","avatar_url":"https://github.com/NightsWatchGames.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[English](https://github.com/NightsWatchGames/tetris/blob/main/README_EN.md)\n# tetris\n俄罗斯方块游戏。\n- [x] 游戏基础玩法（随机四格骨牌、骨牌旋转、骨牌移动、消除行、计分）\n- [x] 游戏UI\n- [x] 游戏音效\n- [x] 支持暂停、恢复和重新开始游戏\n- [x] 支持web\n- [x] 展示下一个骨牌\n- [x] bag7随机算法\n\n在线游玩：[点这里](https://nightswatchgames.github.io/games/tetris/)（电脑版Chrome/Firefox/Edge打开）\n\n## 运行\n1. 本地运行\n```\ncargo run\n```\n2. WASM运行\n```\nrustup target install wasm32-unknown-unknown\ncargo install wasm-server-runner\ncargo run --target wasm32-unknown-unknown\n```\n```\ncargo install wasm-bindgen-cli\ncargo build --release --target wasm32-unknown-unknown\nwasm-bindgen --out-dir ./out/ --target web ./target/wasm32-unknown-unknown/release/tetris.wasm\n```\n\n## 游戏展示\n视频演示：[B站](https://www.bilibili.com/video/BV1y44y1R72Z)\n\n![main menu](https://raw.githubusercontent.com/NightsWatchGames/tetris/main/screenshots/main_menu.png)\n![game playing](https://raw.githubusercontent.com/NightsWatchGames/tetris/main/screenshots/game_playing.png)\n![game paused](https://raw.githubusercontent.com/NightsWatchGames/tetris/main/screenshots/game_paused.png)\n![game over](https://raw.githubusercontent.com/NightsWatchGames/tetris/main/screenshots/game_over.png)\n\n## 参考资料\n- [Tetris - Wikipedia](https://en.wikipedia.org/wiki/Tetris)\n- [俄罗斯方块 - 百度百科](https://baike.baidu.com/item/%E4%BF%84%E7%BD%97%E6%96%AF%E6%96%B9%E5%9D%97/535753)\n- [Online tetris example1](https://tetris.com/play-tetris)\n- [Online tetris example2](https://www.freetetris.org/game.php)\n- [bevy-cheatbook](https://github.com/bevy-cheatbook/bevy-cheatbook)（[中文翻译](https://yiviv.com/bevy-cheatbook/)）\n- https://mbuffett.com/posts/bevy-snake-tutorial/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnightswatchgames%2Ftetris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnightswatchgames%2Ftetris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnightswatchgames%2Ftetris/lists"}