Skip to content

jstnlef/rustris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rustris

This is my attempt at building a Tetris clone in Rust using the Piston game engine. The goal was to try to emulate the rules of Standard Tetris as closely as possible. The scoring follows these guidelines, without the T-Spin rules. I also used this guide as a reference.

Rustris

Build Instructions

Compiles with Rust 1.8.

To build and run the executable:

cargo run --release

To build the executable:

cargo build --release

To run the tests:

cargo test

Key Bindings

  • Left and Right arrows move the tetromino left and right respectively
  • Up rotates the tetromino clockwise
  • Down increases the rate of decent of the tetromino (soft-drop)
  • Space snaps the piece immediately to the location of the ghost-piece (hard-drop)
  • P pauses the game
  • Escape quits

About

An implementation of Tetris written in Rust.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages