5个稳定版本

1.3.1 2024年7月21日
1.3.0 2024年7月20日
1.2.0 2024年6月30日
1.1.0 2024年6月23日
1.0.0 2024年6月22日

#68游戏

Download history 276/week @ 2024-06-18 179/week @ 2024-06-25 30/week @ 2024-07-02 222/week @ 2024-07-16 37/week @ 2024-07-23 2/week @ 2024-07-30

261 每月下载次数

MIT 许可证

3MB
3K SLoC

Sxtetris

Sxtetris是用Rust编写的终端俄罗斯方块游戏,基于ratatuitokio

https://github.com/shixinhuang99/sxtetris/assets/31186725/1eb95c10-e57e-4239-8142-95800e1afca8

安装

Cargo

cargo install sxtetris --locked

AUR

您可以使用AURAUR助手安装sxtetris

paru -S sxtetris

二进制发布

下载最新的发布二进制文件

注意

  1. 建议的最小终端大小:176x49
  2. 终端需要支持24位颜色(真彩色),例如iTerm2
  3. 如果您是macOS用户,请勿使用内置终端,因为其强制行间距会使游戏中的字符看起来很奇怪。建议使用更现代的终端,如iTerm2
  4. 在启动游戏时使用--show-save-path参数来查看保存位置。
  5. 如果您是Linux用户,在使用cargo install时遇到以下错误
The system library `alsa` required by crate `alsa-sys` was not found.
The file `alsa.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
The PKG_CONFIG_PATH environment variable is not set.

HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing `alsa.pc`.

您可以尝试运行以下命令并重新安装

sudo apt-get update
sudo apt-get install libasound2-dev
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig

音乐和音效来源

所有音频文件都在src/global/assets目录中,来自freesound的文件已被剪辑

文件 作者 来源
bg_music.mp3 稳定音频 https://stableaudio.com/1/share/a6ae7a5b-9acf-4082-9032-7b32a9b76c96
game_over.wav themusicalnomad https://freesound.org/people/themusicalnomad/sounds/253886/
lock.wav Mellau https://freesound.org/people/Mellau/sounds/506054/
menu.wav Christopherderp https://freesound.org/people/Christopherderp/sounds/342200/
move.wav aphom000 https://freesound.org/people/aphom000/sounds/623175/
clear.mp3 B_Lamerichs https://freesound.org/people/B_Lamerichs/sounds/193123/

免责声明

本项目是一个在终端运行的开源俄罗斯方块游戏。俄罗斯方块游戏是注册商标,所有权利归其所有者所有。本项目仅用于教育和研究目的,不得用于任何商业用途。

使用本项目,您同意仅将其用于非商业教育和研究目的。开发者不对任何侵权行为负责。

依赖项

~12–45MB
~649K SLoC