Git Product home page Git Product logo

yatrix's Introduction

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

yatrix's People

Contributors

schilken avatar nibuen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.