Git Product home page Git Product logo

tetrisunity's Introduction

Tetris built in Unity - QDD

This is for learning how to build the classic game Tetris within the Unity IDE. This is to help further solidify the understanding of things such as Prefabs as well as creating a grid that checks whether specific arrays have fully been met

Mechanics

Main objective of the game is to take a variety of shapes and create seamless rows in order to score and then remove them.

Upon clearing a singular or multiple lines, the remaining blocks will be pushed down to fill in the newly created gap, allowing players to continue with game play.

If the a section of shapes reaches the top of the board, that will result in a game over.

Shapes

The main objects will be shapes that are similar to alphabetical letters and are groups comprised of blocks. These include:

  • L - shaped
  • J - shaped
  • s - shaped (backwards z)
  • z - shaped
  • T - shaped
  • O - shaped (with blocks it will represent a 4-block square)
  • I - shaped

The highest obtainable multi-line clear will be four lines at once.

Board

The gameplay will take place on a board that is the standard 10x24. This will be related to the size of the blocks that are creating the shapes and set to a tilemap as this will be in the 2D space.

The state of the board will be checked for the following conditions:

  • Is a line full
  • How many lines cleared at once (up to 4)
  • AFTER being placed, does a block exceed the top threshold

tetrisunity's People

Contributors

ericsingletonjr avatar

Watchers

 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.