Skip to content

PistonDevelopers/rusty-tetris

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rusty Tetris Build Status

A Tetris clone written in Rust.

screenshot

The fall speed increases every 10 tetrominoes.

Keys:

  • E / Q or Up => rotate
  • A / D or Left / Right => move
  • S or Down => fast move
  • space => drop immediately
  • F1 => restart the game at any time

Command line options

  • -m By default the game starts with a resolution of 600x800. With the -m option a minified version gets rendered which should also work on smaller screens.
  • -o Switches off the background music
  • -i specifies the number of initial lines whose cells should be randomly filled

How to build & run

Prerequisites:

Build & run:

  1. git clone ... the repository
  2. cd into the rusty-tetris directory
  3. cargo run --release

Windows:

if you use the msvc based version of Rust you have to take care to install the msvc development libs of SDL2 and SDL_mixer.

  1. download SDL2-devel-2.x.x-VC.zip
  2. download SDL2_mixer-devel-2.x.x-VC.zip
  3. unzip and copy the *.lib files into your Rust lib directory typically %HOMEPATH%\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib
  4. finally you need to copy the *.dll files next to the rusty-tetris executable or if you run rusty-tetris with cargo you can place them in the projects root directory.

Dependencies

The project uses the piston game engine with the glutin backend.

External Dependencies

The piston game engine currently depends on a few external non-Rust libraries

Assets

The background music

Remark

The initial Rusty Tetris version was implemented by bachm.

About

A Tetris clone written in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%