Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/madchicken/rust-tetris
A simple tetris made in rust for the terminal
https://github.com/madchicken/rust-tetris
Last synced: 2 months ago
JSON representation
A simple tetris made in rust for the terminal
- Host: GitHub
- URL: https://github.com/madchicken/rust-tetris
- Owner: madchicken
- Created: 2023-02-27T16:25:36.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-02T15:20:26.000Z (3 months ago)
- Last Synced: 2024-10-17T03:11:57.414Z (2 months ago)
- Language: Rust
- Size: 1.47 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license/APACHE
Awesome Lists containing this project
README
# Tetris
Tetris is an open source terminal arcade game with audio, based off of the "TETRIS" classic arcade game.
This game was made using [this other project](https://github.com/CleanCut/invaders) as starting point.
This simple game would not exists without [CleanCut](https://github.com/CleanCut) and his [Rust video curse](https://www.udemy.com/course/ultimate-rust-crash-course/?referralCode=AF30FAD8C6CCCC2C94F0)
### Build and run
After setting up Rust and Cargo on your computer, simply run
cargo run
### Sound Files
All audio files were downloaded from https://mixkit.co/free-sound-effects/game/
### Dependencies on Linux
Audio should work out-of-the-box on macOS, Windows, and iOS. For Linux, the
downstream package for actually _playing_ sound ([CPAL]) requires
the *Alsa* development libraries to be installed.**CentOS**
```bash
sudo yum install -y alsa-lib-devel
```**Debian/Ubuntu**
```bash
sudo apt install libasound2-dev pkg-config
```## Contribution
All contributions are assumed to be dual-licensed under MIT/Apache-2.
## License
Distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See [license/APACHE](license/APACHE) and [license/MIT](license/MIT).
## Screeshot
![Sample screenshot](screenshots/screen.png "A sample scree shot")