Yet Another Tetris Clone, made with Flutter and Flame-Engine.
- 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:
Running the game in a local browser
You can play the game here:https://schilken.de/yatrix
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.
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