/MvvmTetris

MVVM based Tetris application sample

Primary LanguageC#MIT LicenseMIT

MvvmTetris

MVVM based Tetris application sample using ReactiveProperty. You can study following through this sample.

  • How to develop a application for multi platforms
  • Simple MVVM (Model - View - ViewModel) architecture
  • How to use ReactiveProperty
  • Programmable data binding

This sample targets following platforms.

Screen shots

WPF Blazor
WPF-ScreenShot Blazor-ScreenShot

Features

  • Automatic fall down by timer
  • Move / Rotation / Fall down
  • Fix tetrimino immediately
  • Display next tetrimino
  • Display deleted rows information
  • Speed-up gradually (when tetrimino is deleted)
  • Super rotation
  • Multi-Play (only support Server-side Blazor)

How to play

You can play on web version from here.

Key Action
Rotation right
Fall down
Move left
Move right
X Rotation right
Z Rotation left
Space Fix tetrimino immediately
Esc Restart

Explanation document

License

This sample is provided under MIT License.

Author

Takaaki Suzuki (a.k.a @xin9le) is software developer in Japan who awarded Microsoft MVP for Developer Technologies (C#) since July 2012.