Skip to content

GameDevMF/Tetris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tetris (Console)

Table of Contents
  1. About The Project
  2. Getting Started
  3. How to Use the Project
  4. Contributing
  5. License
  6. Contact

About The Project

Here are all the main informations about the project.

Description

This project is more a private project for me to learn and practice C++ in a project. It will not be released or published at all.
It is the Tetris game hopefully everyone knows but with a little twist in the mechanics. Once a line is completed all single characters that have no other character below are falling down. This way the player can create a chain of effects which could make a nearly lost game almost empty again. The speed increase with the score.

Built With

The project uses only libraries that are available on the system itself. No third party libraries will be used.

(back to top)

Getting Started

In this section is described how to start using this project to develop it and what is required to do so.

Prerequisites

To edit and build the project Visual Studio on Windows is required currently because of the solution file.
To clean the project from Visual Studio temporary files execute Clean.bat.

Installation

  1. Clone the repo
git clone https://github.com/VRSimDude/Tetris.git
  1. open the project
    open Tetris.sln

Play the game

To play the game built it in Visual Studio or start it directly from Visual Studio.

You can also start the game without Visual Studio by download the executables for windows here:
v1.0.0 Win64
v1.0.0 Win32

The size of the play area can be changed by adding one or two values to the command or the shortcut as seen here:


The first value is the width of the play area and the second is the height. You can also enter no value or just the width. The default values are 16 width and 32 height.
The width has a min value of 9 and max of 32. The height has a min value of 11 and max of 64. All values out of this are cutted.

Important is o change the size of the console in order to see the game correctly.

To change that right click at the console window menu and click Properties:



And then change the Width and Height of the Screen Buffer Size and Window Size:



The width must be the given width (or default 16) plus additional 12 for the UI.
The height must be the given height (or default 32) plus additional 2 for better display.

For a better experience choose a Font that displays the characters more squared like the font Raster Fonts with a Size of 8x8.
That way it looks like in the screenshots.

(back to top)

How to Use the Project

Here is described how you use the projects features.

Keybindings

Move the current Tetromino left and right with the left and right arrow key.
Move it on block down with the down arrow key.
And move it immediately to the bottom with the up arrow key.
Start or restart the game with Return.
Exit the game with Escape.

(back to top)

Contributing

Contributions to this project can be done by writing me.

(back to top)

License

Distributed under the MIT License License. See LICENSE for more information.

(back to top)

Contact

mail: contact@marcfriedrich.com
project link: https://github.com/VRSimDude/Tetris

(back to top)

About

This is a simple console clone of the Tetris game made in C++.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors