nibuen / yatrix

Yet Another Tetris Clone, made with Flutter and Flame-Engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

YaTriX

Yet Another Tetris Clone, made with Flutter and Flame-Engine.

Getting Started

  • Have an installation of Flutter version 3.3.x or later
  • Clone this repo.
  • flutter pub get
  • Run in Chrome: flutter run -d Chrome

Build for deployment: flutter build web --web-renderer canvaskit

Deploy to web server: copy contents of folder build/web:

A tiny teaser

Running the game in a local browser

Online Web Version

You can play the game here:https://schilken.de/yatrix

The Two-Player Mode

See the Info-Page in the app for a step-by-step guide.

Or this video:

yatrix_two-player-mode.mp4

You see YaTriX as a macOS app on the left. Here I start the server-mode and wait for a connection. The serverId is copied to the clipboard.

The web version of YaTriX is running in a Safari browser to the right. Here I connect to the serverId found on the clipboard.

A two-player game can only be initiated by the server. The client then gets a dialog displayed, on which he can start the game on both sides at the same time and with the same squence of blocks.

By the Way

The two-player mode is implemented using the peerdart package, which in turn uses the package flutter_webrtc.

A special thanks goes to the developers of these packages – and of course to all participants in the flutter ecosystem

About

Yet Another Tetris Clone, made with Flutter and Flame-Engine.

License:MIT License


Languages

Language:Dart 51.9%Language:C++ 23.6%Language:CMake 19.1%Language:HTML 1.6%Language:C 1.4%Language:Swift 1.4%Language:Ruby 0.9%Language:Kotlin 0.1%Language:Objective-C 0.0%