Tetris Example in Rust, v2

A Tetris example written in Rust using Piston

.

  • For demoing basic Rust coding
  • 414 lines of code
  • A clear Git history that iterates on added features. See: git log --reverse -p 855e7fddd..HEAD
  • The completed lines are flashing
  • No scoring
  • No 'next piece view'
  • No automatic restart after 'game over'
  • No change in falling piece speed
  1. Install Rust from main site.
  2. Perform the following:
git clone https://github.com/da-x/tetris-demo
cd tetris-demo
cargo run

Changes from v1

  • Simplified the handling of the game state.
  • Using a HashMap instead of a Vec<Vec<_>> for board and pieces.
  • Less lines, same functionality.
  • A clear Git history that iterates on added features.

Information - Updated May 13, 2022

Stars: 105
Forks: 6
Issues: 0

Repositories & Extras

RGB (Rust Game Boy) is a simple emulator for the original game boy and the...

RGB (Rust Game Boy) is a simple emulator for the original game boy and the color game boy

RGB (Rust Game Boy) is a simple emulator for the original game boy and the...

Bevy is a refreshingly simple data-driven game engine built in Rust

A modular and data focused rust game engine that fast and free for all

Bevy is a refreshingly simple data-driven game engine built in Rust

Arsenal 2D retro Rust Game engine

Katharos Technology is focused on producing our first game prototype, bevy game engine and our own Katharos...

Arsenal 2D retro Rust Game engine

New Rust GENTS Game Engine

It's a prototyping Game Engine written entirely in Rust Language with some bindings for external libs

New Rust GENTS Game Engine

guessing_game_rust

A repo used to learn rust using the Rust compiler

guessing_game_rust

Grumpy Visitors 2D Rust game for code reference and learning

Grumpy Visitors is a top-down 2D action arcade game

Grumpy Visitors 2D Rust game for code reference and learning

@texhno-rust-wasm-game-of-life

A template for kick starting a Rust and WebAssembly project using Tutorial

@texhno-rust-wasm-game-of-life

Rust Guessing Game

This is a simple guessing game, taken from the book &quot;The Rust Programming Language&quot; Installing

Rust Guessing Game

A Rust and game programming learning project

Ubuntu-latest, MacOS-latest

A Rust and game programming learning project

Rust Game Remake

Remake in rust of a game I made during the here

Rust Game Remake

A 3d rust game using OpenGl and Emscripten to build for the wasm32-unknown-emscripten

It can also run standalone, developed and tested on Linux but will

A 3d rust game using OpenGl and Emscripten to build for the wasm32-unknown-emscripten
Facebook Instagram Twitter GitHub Dribbble
Privacy