Rust Tetris
This app aims to be a complete low level Tetris clone written in Rust and SDL2. It should have Scoring and game play similar to the NES version of the game. The code is based off of the typescript Tetris prototype I've previously written.Only with better game logic more consistent with the nes version of the game. You can see that version here TypeScript Tetris
Getting Started
Currently Ubuntu 18.04 and Windows are supported. Because thats what I'm testing on.
Prerequisites
You will need the latest stable version of rust. You will also need sdl2 development libraries if you are on ubuntu. which you can install with.
sudo apt-get install libsdl2-dev
Windows users may use the build.rs script in the main directory and the included sdl libraries.
Installing
To build and run the project, cd into the src directory and type
cargo run
Cargo will go out and gather the needed dependencies, build and launch tetris.
Controlls
Use the left, right, and down arrow keys for navigation. The up key rotates the piece. The space bar lands the piece at the bottom. Currently the a key creates a new piece but will be removed later. The r key resets the board.
Built With
- Rust - Programming Language
- Rust SDL - The Graphics Library wrapper written in rust
- SDL2 - C library rust wrapper uses
Authors
- Caleb McCarthy - Web Site .
